1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
pub struct MethodAttributes(pub(crate) u32); impl MethodAttributes { pub fn special(&self) -> bool { self.0 & 0b100000000000 != 0 } } pub struct TypeAttributes(pub(crate) u32); impl TypeAttributes { pub fn windows_runtime(&self) -> bool { self.0 & 0b100_0000_0000_0000 != 0 } pub fn interface(&self) -> bool { self.0 & 0b10_0000 != 0 } }