From 64106c4d3d4ddba8c7bc2af75376e6d3d3d75601 Mon Sep 17 00:00:00 2001
From:
Date: Mon, 29 Jun 2015 20:16:15 +0000
Subject: Update documentation
---
src/lazy_static/lib.rs.html | 345 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 345 insertions(+)
create mode 100644 src/lazy_static/lib.rs.html
(limited to 'src/lazy_static/lib.rs.html')
diff --git a/src/lazy_static/lib.rs.html b/src/lazy_static/lib.rs.html
new file mode 100644
index 0000000..b6e5e1e
--- /dev/null
+++ b/src/lazy_static/lib.rs.html
@@ -0,0 +1,345 @@
+
+
+
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+ 10
+ 11
+ 12
+ 13
+ 14
+ 15
+ 16
+ 17
+ 18
+ 19
+ 20
+ 21
+ 22
+ 23
+ 24
+ 25
+ 26
+ 27
+ 28
+ 29
+ 30
+ 31
+ 32
+ 33
+ 34
+ 35
+ 36
+ 37
+ 38
+ 39
+ 40
+ 41
+ 42
+ 43
+ 44
+ 45
+ 46
+ 47
+ 48
+ 49
+ 50
+ 51
+ 52
+ 53
+ 54
+ 55
+ 56
+ 57
+ 58
+ 59
+ 60
+ 61
+ 62
+ 63
+ 64
+ 65
+ 66
+ 67
+ 68
+ 69
+ 70
+ 71
+ 72
+ 73
+ 74
+ 75
+ 76
+ 77
+ 78
+ 79
+ 80
+ 81
+ 82
+ 83
+ 84
+ 85
+ 86
+ 87
+ 88
+ 89
+ 90
+ 91
+ 92
+ 93
+ 94
+ 95
+ 96
+ 97
+ 98
+ 99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+
+
+
+#![crate_type = "dylib"]
+
+#[macro_export]
+macro_rules! lazy_static {
+ (static ref $N:ident : $T:ty = $e:expr; $($t:tt)*) => {
+ lazy_static!(PRIV static ref $N : $T = $e; $($t)*);
+ };
+ (pub static ref $N:ident : $T:ty = $e:expr; $($t:tt)*) => {
+ lazy_static!(PUB static ref $N : $T = $e; $($t)*);
+ };
+ ($VIS:ident static ref $N:ident : $T:ty = $e:expr; $($t:tt)*) => {
+ lazy_static!(MAKE TY $VIS $N);
+ impl ::std::ops::Deref for $N {
+ type Target = $T;
+ fn deref<'a>(&'a self) -> &'a $T {
+ #[inline(always)]
+ fn __static_ref_initialize() -> Box<$T> { Box::new($e) }
+
+ unsafe {
+ use std::sync::{Once, ONCE_INIT};
+ use std::mem::transmute;
+
+ #[inline(always)]
+ fn require_sync<T: Sync>(_: &T) { }
+
+ static mut DATA: *const $T = 0 as *const $T;
+ static mut ONCE: Once = ONCE_INIT;
+ ONCE.call_once(|| {
+ DATA = transmute::<Box<$T>, *const $T>(__static_ref_initialize());
+ });
+ let static_ref = &*DATA;
+ require_sync(static_ref);
+ static_ref
+ }
+ }
+ }
+ lazy_static!($($t)*);
+ };
+ (MAKE TY PUB $N:ident) => {
+ #[allow(missing_copy_implementations)]
+ #[allow(non_camel_case_types)]
+ #[allow(dead_code)]
+ pub struct $N {__private_field: ()}
+ pub static $N: $N = $N {__private_field: ()};
+ };
+ (MAKE TY PRIV $N:ident) => {
+ #[allow(missing_copy_implementations)]
+ #[allow(non_camel_case_types)]
+ #[allow(dead_code)]
+ struct $N {__private_field: ()}
+ static $N: $N = $N {__private_field: ()};
+ };
+ () => ()
+}
+
+
+