Lines Matching +full:crate +full:- +full:example
1 // Copyright 2016 lazy-static.rs Developers
3 // Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
4 // http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
31 # extern crate lazy_static;
34 /// This is an example for using doc comment attributes
35 static ref EXAMPLE: u8 = 42;
53 - Any type in them needs to fulfill the `Sync` trait.
54 - If the type has a destructor, then it will not run when the process exits.
56 # Example
62 extern crate lazy_static;
78 fn times_two(n: u32) -> u32 { n * 2 }
93 This crate provides one cargo feature:
95 - `spin_no_std`: This allows using this crate in a no-std environment, by depending on the standalo…
109 extern crate doc_comment;
133 impl $crate::__Deref for $N {
135 fn deref(&self) -> &$T {
137 fn __static_ref_initialize() -> $T { $e }
140 fn __stability() -> &'static $T {
147 impl $crate::LazyStatic for $N {
184 /// used by the free functions in this crate.
195 /// Example:
199 /// extern crate lazy_static;