1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[derive(Default)] pub struct ParamFlags(pub u32); impl ParamFlags { pub fn input(&self) -> bool { self.0 & 0x0001 != 0 } pub fn output(&self) -> bool { self.0 & 0x0002 != 0 } pub fn optional(&self) -> bool { self.0 & 0x0010 != 0 } }