Lines Matching defs:ref
20 [pub] static ref NAME_1: TYPE_1 = EXPR_1;
21 [pub] static ref NAME_2: TYPE_2 = EXPR_2;
23 [pub] static ref NAME_N: TYPE_N = EXPR_N;
35 static ref EXAMPLE: u8 = 42;
42 For a given `static ref NAME: TYPE = EXPR;`, the macro generates a unique type that
50 Apart from the lazy initialization, the resulting "static ref" variables
67 static ref HASHMAP: HashMap<u32, &'static str> = {
74 static ref COUNT: usize = HASHMAP.len();
75 static ref NUMBER: u32 = times_two(21);
127 ($(#[$attr:meta])* ($($vis:tt)*) static ref $N:ident : $T:ty = $e:expr; $($t:tt)*) => {
168 ($(#[$attr:meta])* static ref $N:ident : $T:ty = $e:expr; $($t:tt)*) => {
170 __lazy_static_internal!($(#[$attr])* () static ref $N : $T = $e; $($t)*);
172 ($(#[$attr:meta])* pub static ref $N:ident : $T:ty = $e:expr; $($t:tt)*) => {
173 __lazy_static_internal!($(#[$attr])* (pub) static ref $N : $T = $e; $($t)*);
175 ($(#[$attr:meta])* pub ($($vis:tt)+) static ref $N:ident : $T:ty = $e:expr; $($t:tt)*) => {
176 __lazy_static_internal!($(#[$attr])* (pub ($($vis)+)) static ref $N : $T = $e; $($t)*);
202 /// static ref BUFFER: Vec<u8> = (0..255).collect();