pub struct HType(/* private fields */);
Implementations§
source§impl HType
impl HType
pub const FROM_SERVER_TIME: HType = _
pub const FROM_CLIENT_TIME: HType = _
pub const FROM_CLIENT_SEQUENCE: HType = _
source§impl HType
impl HType
sourcepub fn contains(self, flag: impl Into<u8>) -> bool
pub fn contains(self, flag: impl Into<u8>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
sourcepub fn intersects(self, flag: impl Into<u8>) -> bool
pub fn intersects(self, flag: impl Into<u8>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
Trait Implementations§
source§impl BitAndAssign<u8> for HType
impl BitAndAssign<u8> for HType
source§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read moresource§impl BitAndAssign for HType
impl BitAndAssign for HType
source§fn bitand_assign(&mut self, other: HType)
fn bitand_assign(&mut self, other: HType)
Performs the
&=
operation. Read moresource§impl BitOrAssign<u8> for HType
impl BitOrAssign<u8> for HType
source§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read moresource§impl BitOrAssign for HType
impl BitOrAssign for HType
source§fn bitor_assign(&mut self, other: HType)
fn bitor_assign(&mut self, other: HType)
Performs the
|=
operation. Read moresource§impl Ord for HType
impl Ord for HType
source§impl PartialEq for HType
impl PartialEq for HType
source§impl PartialOrd for HType
impl PartialOrd for HType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for HType
impl Eq for HType
impl StructuralPartialEq for HType
Auto Trait Implementations§
impl Freeze for HType
impl RefUnwindSafe for HType
impl Send for HType
impl Sync for HType
impl Unpin for HType
impl UnwindSafe for HType
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