pub struct CoFastFlags(/* private fields */);Implementations§
Source§impl CoFastFlags
impl CoFastFlags
pub const fn new() -> Self
pub const fn empty() -> Self
pub const fn from_bits_retain(raw: u8) -> Self
pub const fn bits(&self) -> u8
pub const fn as_bits(&self) -> &u8
pub const unsafe fn from_bits_unchecked(bits: u8) -> Self
pub const fn from_bits(bits: u8) -> Option<Self>
pub const fn from_bits_truncate(bits: u8) -> Self
pub const fn from_element(element: CoFastFlag) -> Self
pub const fn from_slice(slice: &[CoFastFlag]) -> Self
pub const fn contains(&self, value: &CoFastFlag) -> bool
pub const fn len(&self) -> usize
pub const fn is_empty(&self) -> bool
pub const fn all() -> Self
pub const fn is_all(&self) -> bool
pub const fn complement(self) -> Self
pub fn toggle(&mut self, value: CoFastFlag)
pub fn set(&mut self, value: CoFastFlag, enabled: bool)
pub fn insert(&mut self, value: CoFastFlag) -> bool
pub fn remove(&mut self, value: CoFastFlag) -> bool
pub fn clear(&mut self)
pub const fn is_subset(&self, other: &Self) -> bool
pub const fn is_superset(&self, other: &Self) -> bool
pub const fn is_disjoint(&self, other: &Self) -> bool
pub fn first(&self) -> Option<CoFastFlag>
pub fn last(&self) -> Option<CoFastFlag>
pub fn pop_first(&mut self) -> Option<CoFastFlag>
pub fn pop_last(&mut self) -> Option<CoFastFlag>
pub fn retain(&mut self, f: impl FnMut(CoFastFlag) -> bool)
pub fn iter(&self) -> PrimBitSetIter<u8, CoFastFlag> ⓘ
pub fn iter_names(
&self,
) -> impl Iterator<Item = (&'static str, CoFastFlag)> + '_where
CoFastFlag: BitFlag,
pub fn from_name(name: &str) -> Option<Self>where
CoFastFlag: BitFlag,
Source§impl CoFastFlags
impl CoFastFlags
Trait Implementations§
Source§impl Binary for CoFastFlags
impl Binary for CoFastFlags
Source§impl BitAnd for CoFastFlags
impl BitAnd for CoFastFlags
Source§type Output = CoFastFlags
type Output = CoFastFlags
The resulting type after applying the
& operator.Source§impl BitAndAssign for CoFastFlags
impl BitAndAssign for CoFastFlags
Source§fn bitand_assign(&mut self, rhs: CoFastFlags)
fn bitand_assign(&mut self, rhs: CoFastFlags)
Performs the
&= operation. Read moreSource§impl BitFlagSet<CoFastFlag, u8> for CoFastFlags
impl BitFlagSet<CoFastFlag, u8> for CoFastFlags
const BITS: u8
fn empty() -> Self
fn from_bits_retain(raw: u8) -> Self
fn from_element(element: CoFastFlag) -> Self
fn first(&self) -> Option<CoFastFlag>
fn last(&self) -> Option<CoFastFlag>
fn pop_first(&mut self) -> Option<CoFastFlag>
fn pop_last(&mut self) -> Option<CoFastFlag>
fn len(&self) -> usize
fn is_empty(&self) -> bool
fn insert(&mut self, value: CoFastFlag) -> bool
fn remove(&mut self, value: CoFastFlag) -> bool
fn is_subset(&self, other: &Self) -> bool
fn is_superset(&self, other: &Self) -> bool
fn is_disjoint(&self, other: &Self) -> bool
fn contains(&self, value: &CoFastFlag) -> bool
fn retain(&mut self, f: impl FnMut(CoFastFlag) -> bool)
fn iter(&self) -> PrimBitSetIter<u8, CoFastFlag> ⓘ
fn to_vec(&self) -> Vec<T>
Source§impl BitOr for CoFastFlags
impl BitOr for CoFastFlags
Source§type Output = CoFastFlags
type Output = CoFastFlags
The resulting type after applying the
| operator.Source§impl BitOrAssign for CoFastFlags
impl BitOrAssign for CoFastFlags
Source§fn bitor_assign(&mut self, rhs: CoFastFlags)
fn bitor_assign(&mut self, rhs: CoFastFlags)
Performs the
|= operation. Read moreSource§impl BitXor for CoFastFlags
impl BitXor for CoFastFlags
Source§type Output = CoFastFlags
type Output = CoFastFlags
The resulting type after applying the
^ operator.Source§impl BitXorAssign for CoFastFlags
impl BitXorAssign for CoFastFlags
Source§fn bitxor_assign(&mut self, rhs: CoFastFlags)
fn bitxor_assign(&mut self, rhs: CoFastFlags)
Performs the
^= operation. Read moreSource§impl Clone for CoFastFlags
impl Clone for CoFastFlags
impl Copy for CoFastFlags
Source§impl Debug for CoFastFlags
impl Debug for CoFastFlags
Source§impl Default for CoFastFlags
impl Default for CoFastFlags
Source§impl Display for CoFastFlagswhere
CoFastFlag: BitFlag,
impl Display for CoFastFlagswhere
CoFastFlag: BitFlag,
impl Eq for CoFastFlags
Source§impl Extend<CoFastFlag> for CoFastFlags
impl Extend<CoFastFlag> for CoFastFlags
Source§fn extend<I: IntoIterator<Item = CoFastFlag>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = CoFastFlag>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬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 From<BitSet<u8, CoFastFlag>> for CoFastFlags
impl From<BitSet<u8, CoFastFlag>> for CoFastFlags
Source§impl From<CoFastFlags> for BitSet<u8, CoFastFlag>
impl From<CoFastFlags> for BitSet<u8, CoFastFlag>
Source§fn from(val: CoFastFlags) -> Self
fn from(val: CoFastFlags) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<[CoFastFlag; N]> for CoFastFlags
impl<const N: usize> From<[CoFastFlag; N]> for CoFastFlags
Source§fn from(array: [CoFastFlag; N]) -> Self
fn from(array: [CoFastFlag; N]) -> Self
Converts to this type from the input type.
Source§impl FromIterator<CoFastFlag> for CoFastFlags
impl FromIterator<CoFastFlag> for CoFastFlags
Source§fn from_iter<I: IntoIterator<Item = CoFastFlag>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = CoFastFlag>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl FromIterator<CoFastFlags> for CoFastFlags
impl FromIterator<CoFastFlags> for CoFastFlags
Source§fn from_iter<I: IntoIterator<Item = CoFastFlags>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = CoFastFlags>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl Index<CoFastFlag> for CoFastFlags
impl Index<CoFastFlag> for CoFastFlags
Source§impl IntoIterator for CoFastFlags
impl IntoIterator for CoFastFlags
Source§type Item = CoFastFlag
type Item = CoFastFlag
The type of the elements being iterated over.
Source§type IntoIter = PrimBitSetIter<u8, CoFastFlag>
type IntoIter = PrimBitSetIter<u8, CoFastFlag>
Which kind of iterator are we turning this into?
Source§impl LowerHex for CoFastFlags
impl LowerHex for CoFastFlags
Source§impl NamedFlags for CoFastFlags
impl NamedFlags for CoFastFlags
type Element = CoFastFlag
fn flag_names() -> impl Iterator<Item = (&'static str, Self::Element)>
Source§impl Not for CoFastFlags
impl Not for CoFastFlags
Source§impl Octal for CoFastFlags
impl Octal for CoFastFlags
Source§impl PartialEq for CoFastFlags
impl PartialEq for CoFastFlags
impl StructuralPartialEq for CoFastFlags
Source§impl Sub for CoFastFlags
impl Sub for CoFastFlags
Source§type Output = CoFastFlags
type Output = CoFastFlags
The resulting type after applying the
- operator.Source§impl SubAssign for CoFastFlags
impl SubAssign for CoFastFlags
Source§fn sub_assign(&mut self, rhs: CoFastFlags)
fn sub_assign(&mut self, rhs: CoFastFlags)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for CoFastFlags
impl RefUnwindSafe for CoFastFlags
impl Send for CoFastFlags
impl Sync for CoFastFlags
impl Unpin for CoFastFlags
impl UnsafeUnpin for CoFastFlags
impl UnwindSafe for CoFastFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more