Lines Matching defs:ref
7 pub static ref NUMBER: u32 = times_two(3);
9 static ref ARRAY_BOXES: [Box<u32>; 3] = [Box::new(1), Box::new(2), Box::new(3)];
14 pub static ref STRING: String = "hello".to_string();
16 static ref HASHMAP: HashMap<u32, &'static str> = {
25 static ref UNSAFE: u32 = unsafe {
31 static ref S1: &'static str = "a";
32 static ref S2: &'static str = "b";
35 static ref S3: String = [*S1, *S2].join("");
77 pub static ref FOO: Box<u32> = Box::new(0);
78 static ref BAR: Box<u32> = Box::new(98);
83 pub(in visibility) static ref BAZ: Box<u32> = Box::new(42);
84 pub(crate) static ref BAG: Box<u32> = Box::new(37);
105 pub static ref VAR: i32 = { 0 };
121 static ref ITEM_NAME_TEST: X = {
144 static ref PRE_INIT: () = {
158 static ref LIFETIME_NAME: for<'a> fn(&'a u8) = { fn f(_: &u8) {} f };