pub struct HookMask { /* private fields */ }
Expand description
Hook point masks for lua_sethook
.
Implementations§
Source§impl HookMask
impl HookMask
Sourcepub fn from_bits(bits: c_int) -> Option<HookMask>
pub fn from_bits(bits: c_int) -> Option<HookMask>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: c_int) -> HookMask
pub fn from_bits_truncate(bits: c_int) -> HookMask
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: HookMask) -> bool
pub fn intersects(&self, other: HookMask) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl Ord for HookMask
impl Ord for HookMask
Source§impl PartialOrd for HookMask
impl PartialOrd for HookMask
impl Copy for HookMask
impl Eq for HookMask
impl StructuralPartialEq for HookMask
Auto Trait Implementations§
impl Freeze for HookMask
impl RefUnwindSafe for HookMask
impl Send for HookMask
impl Sync for HookMask
impl Unpin for HookMask
impl UnwindSafe for HookMask
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