pub struct BitField64<T: Flag>(/* private fields */);
Expand description
A bit field containing a u64
This is the mutable form and can be converted with From::from
or Into::into
.
Trait Implementations§
Source§impl<T: Clone + Flag> Clone for BitField64<T>
impl<T: Clone + Flag> Clone for BitField64<T>
Source§fn clone(&self) -> BitField64<T>
fn clone(&self) -> BitField64<T>
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<T: Flag> ConstField<T> for BitField64<T>
impl<T: Flag> ConstField<T> for BitField64<T>
Source§type Inner = u64
type Inner = u64
The type stored within the bit field, or at least a type that can be converted to and from it
Source§fn contains(&self, flag: impl Into<T>) -> bool
fn contains(&self, flag: impl Into<T>) -> bool
Returns
true
if the provided bit flag is stored within the bit fieldSource§impl<T: Flag> Default for BitField64<T>
impl<T: Flag> Default for BitField64<T>
Source§impl<T: Flag> Field<T> for BitField64<T>
impl<T: Flag> Field<T> for BitField64<T>
Source§fn insert_all(self, flags: &[impl Into<T> + Clone]) -> Self
fn insert_all(self, flags: &[impl Into<T> + Clone]) -> Self
Adds all of the given bit flags into the bit field
Source§fn remove_all(self, flags: &[impl Into<T> + Clone]) -> Self
fn remove_all(self, flags: &[impl Into<T> + Clone]) -> Self
Removes all of the given bit flags into the bit field
Source§impl<T: Flag> From<BitField64<T>> for ConstBitField64<T>
impl<T: Flag> From<BitField64<T>> for ConstBitField64<T>
Source§fn from(value: BitField64<T>) -> Self
fn from(value: BitField64<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Flag> From<ConstBitField64<T>> for BitField64<T>
impl<T: Flag> From<ConstBitField64<T>> for BitField64<T>
Source§fn from(value: ConstBitField64<T>) -> Self
fn from(value: ConstBitField64<T>) -> Self
Converts to this type from the input type.
impl<T: Copy + Flag> Copy for BitField64<T>
impl<T: Eq + Flag> Eq for BitField64<T>
impl<T: Flag> StructuralPartialEq for BitField64<T>
Auto Trait Implementations§
impl<T> Freeze for BitField64<T>
impl<T> RefUnwindSafe for BitField64<T>where
T: RefUnwindSafe,
impl<T> Send for BitField64<T>where
T: Send,
impl<T> Sync for BitField64<T>where
T: Sync,
impl<T> Unpin for BitField64<T>where
T: Unpin,
impl<T> UnwindSafe for BitField64<T>where
T: UnwindSafe,
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