pub struct CellFlag { /* private fields */ }Implementations§
Source§impl CellFlag
impl CellFlag
pub const REAL: CellFlag
pub const SIGNED: CellFlag
Sourcepub fn from_bits(bits: u32) -> Option<CellFlag>
pub fn from_bits(bits: u32) -> Option<CellFlag>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> CellFlag
pub const fn from_bits_truncate(bits: u32) -> CellFlag
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> CellFlag
pub const unsafe fn from_bits_unchecked(bits: u32) -> CellFlag
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: CellFlag) -> bool
pub const fn intersects(&self, other: CellFlag) -> bool
Returns true if there are flags common to both self and other.
Trait Implementations§
Source§impl BitAndAssign for CellFlag
impl BitAndAssign for CellFlag
Source§fn bitand_assign(&mut self, other: CellFlag)
fn bitand_assign(&mut self, other: CellFlag)
Disables all flags disabled in the set.
Source§impl BitOrAssign for CellFlag
impl BitOrAssign for CellFlag
Source§fn bitor_assign(&mut self, other: CellFlag)
fn bitor_assign(&mut self, other: CellFlag)
Adds the set of flags.
Source§impl BitXorAssign for CellFlag
impl BitXorAssign for CellFlag
Source§fn bitxor_assign(&mut self, other: CellFlag)
fn bitxor_assign(&mut self, other: CellFlag)
Toggles the set of flags.
Source§impl Extend<CellFlag> for CellFlag
impl Extend<CellFlag> for CellFlag
Source§fn extend<T: IntoIterator<Item = CellFlag>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = CellFlag>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<CellFlag> for CellFlag
impl FromIterator<CellFlag> for CellFlag
Source§impl Ord for CellFlag
impl Ord for CellFlag
Source§impl PartialOrd for CellFlag
impl PartialOrd for CellFlag
Source§impl SubAssign for CellFlag
impl SubAssign for CellFlag
Source§fn sub_assign(&mut self, other: CellFlag)
fn sub_assign(&mut self, other: CellFlag)
Disables all flags enabled in the set.
impl Copy for CellFlag
impl Eq for CellFlag
impl StructuralPartialEq for CellFlag
Auto Trait Implementations§
impl Freeze for CellFlag
impl RefUnwindSafe for CellFlag
impl Send for CellFlag
impl Sync for CellFlag
impl Unpin for CellFlag
impl UnsafeUnpin for CellFlag
impl UnwindSafe for CellFlag
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