1 bitflags! { 2 /// Constants shared by multiple CSS Box Alignment properties 3 /// 4 /// These constants match Gecko's `NS_STYLE_ALIGN_*` constants. 5 #[derive(MallocSizeOf, ToComputedValue)] 6 #[repr(C)] 7 pub struct AlignFlags: u8 { 8 /// 'auto' 9 const AUTO = 0; 10 /// 'normal' 11 const NORMAL = 1; 12 /// 'start' 13 const START = 1 << 1; 14 /// 'end' 15 const END = 1 << 2; 16 /// 'flex-start' 17 const FLEX_START = 1 << 3; 18 } 19 } 20 21 bitflags! { 22 #[repr(C)] 23 pub struct DebugFlags: u32 { 24 /// Flag with the topmost bit set of the u32 25 const BIGGEST_ALLOWED = 1 << 31; 26 } 27 } 28 29 #[no_mangle] root(flags: AlignFlags, bigger_flags: DebugFlags)30pub extern "C" fn root(flags: AlignFlags, bigger_flags: DebugFlags) {} 31