pub struct EventEnumModel {
pub name: String,
pub screaming: String,
pub variants: Vec<(&'static str, u32, u32)>,
}Expand description
0-based event discriminants and listener bitmasks derived from TableDesc::events
(EventEnum::EVENT_SET), where every (name, bit) has bit == 1 << id.
Fields§
§name: StringEvent enum name, e.g. TextInputEvent (derived by stripping "Set" from "TextInputEventSet").
screaming: StringSCREAMING_SNAKE prefix, e.g. TEXT_INPUT_EVENT.
variants: Vec<(&'static str, u32, u32)>(variant_name, event_id, bit_mask) in declaration order (bit_mask == 1 << event_id).
Trait Implementations§
Auto Trait Implementations§
impl Forget for EventEnumModel
impl Freeze for EventEnumModel
impl Move for EventEnumModel
impl RefUnwindSafe for EventEnumModel
impl Send for EventEnumModel
impl Sync for EventEnumModelwhere
RawVecInner: Sync,
impl Unpin for EventEnumModel
impl UnsafeUnpin for EventEnumModelwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(&'static str, u32, u32)>: UnsafeUnpin,
impl UnwindSafe for EventEnumModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more