pub enum IdPos {
Id(u16),
Pos(u32),
}
Available on crate feature
user
only.Expand description
Variant parameter for:
Variants§
Implementations§
source§impl IdPos
impl IdPos
sourcepub const fn id_or_pos_u32(self) -> u32
pub const fn id_or_pos_u32(self) -> u32
Returns the ID or the position as a plain u32
.
sourcepub const fn mf_flag(self) -> MF
pub const fn mf_flag(self) -> MF
Returns MF::BYCOMMAND
if value is Id
, or
MF::BYPOSITION
if value is Pos
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IdPos
impl RefUnwindSafe for IdPos
impl Send for IdPos
impl Sync for IdPos
impl Unpin for IdPos
impl UnwindSafe for IdPos
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