pub struct PointerFlags(/* private fields */);Expand description
Flags to represent various characteristics of pointers
Implementations§
Source§impl PointerFlags
impl PointerFlags
Sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns true if all flags in other are contained in self.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self and other.
Sourcepub const fn from_bits_retain(bits: u8) -> Self
pub const fn from_bits_retain(bits: u8) -> Self
Creates from raw bits (unchecked).
Trait Implementations§
Source§impl BitAnd for PointerFlags
impl BitAnd for PointerFlags
Source§impl BitAndAssign for PointerFlags
impl BitAndAssign for PointerFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for PointerFlags
impl BitOr for PointerFlags
Source§impl BitOrAssign for PointerFlags
impl BitOrAssign for PointerFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for PointerFlags
impl BitXor for PointerFlags
Source§impl BitXorAssign for PointerFlags
impl BitXorAssign for PointerFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for PointerFlags
impl Clone for PointerFlags
Source§fn clone(&self) -> PointerFlags
fn clone(&self) -> PointerFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointerFlags
impl Debug for PointerFlags
Source§impl Default for PointerFlags
impl Default for PointerFlags
Source§fn default() -> PointerFlags
fn default() -> PointerFlags
Returns the “default value” for a type. Read more
Source§impl Hash for PointerFlags
impl Hash for PointerFlags
Source§impl Not for PointerFlags
impl Not for PointerFlags
Source§impl PartialEq for PointerFlags
impl PartialEq for PointerFlags
impl Copy for PointerFlags
impl Eq for PointerFlags
impl StructuralPartialEq for PointerFlags
Auto Trait Implementations§
impl Freeze for PointerFlags
impl RefUnwindSafe for PointerFlags
impl Send for PointerFlags
impl Sync for PointerFlags
impl Unpin for PointerFlags
impl UnwindSafe for PointerFlags
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