Searched refs:raw_field (Results 1 – 4 of 4) sorted by relevance
/third_party/rust/crates/memoffset/src/ |
D | span_of.rs | 108 let end = raw_field!($root, $parent, $end); 112 ($root as usize, raw_field!($root, $parent, $end) as usize) 116 let begin = raw_field!($root, $parent, $begin); 117 let end = raw_field!($root, $parent, $end); 121 (raw_field!($root, $parent, $begin) as usize, 122 raw_field!($root, $parent, $end) as usize) 126 (raw_field!($root, $parent, $begin) as usize, 135 let field = raw_field!($root, $parent, $field);
|
D | offset_of.rs | 105 let field_ptr = raw_field!(base_ptr, $parent, $field); 273 assert_eq!(f_ptr as usize + 0, raw_field!(f_ptr, Foo, a) as usize); in test_raw_field() 274 assert_eq!(f_ptr as usize + 4, raw_field!(f_ptr, Foo, b) as usize); in test_raw_field() 275 assert_eq!(f_ptr as usize + 8, raw_field!(f_ptr, Foo, c) as usize); in test_raw_field()
|
D | lib.rs | 89 mod raw_field; module
|
D | raw_field.rs | 163 macro_rules! raw_field { macro
|