pub struct CoFastFlags(/* private fields */);Implementations§
Source§impl CoFastFlags
impl CoFastFlags
pub const fn new() -> CoFastFlags
pub const fn empty() -> CoFastFlags
pub const fn from_bits_retain(raw: u8) -> CoFastFlags
pub const fn bits(&self) -> u8
pub const fn as_bits(&self) -> &u8
pub const unsafe fn from_bits_unchecked(bits: u8) -> CoFastFlags
pub const fn from_bits(bits: u8) -> Option<CoFastFlags>
pub const fn from_bits_truncate(bits: u8) -> CoFastFlags
pub const fn from_element(element: CoFastFlag) -> CoFastFlags
pub const fn from_slice(slice: &[CoFastFlag]) -> CoFastFlags
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() -> CoFastFlags
pub const fn is_all(&self) -> bool
pub const fn complement(self) -> CoFastFlags
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: &CoFastFlags) -> bool
pub const fn is_superset(&self, other: &CoFastFlags) -> bool
pub const fn is_disjoint(&self, other: &CoFastFlags) -> 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<CoFastFlags>where
CoFastFlag: BitFlag,
Source§impl CoFastFlags
impl CoFastFlags
pub const ARG: 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§fn bitand(self, rhs: CoFastFlags) -> <CoFastFlags as BitAnd>::Output
fn bitand(self, rhs: CoFastFlags) -> <CoFastFlags as BitAnd>::Output
Performs the
& operation. Read moreSource§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() -> CoFastFlags
fn from_bits_retain(raw: u8) -> CoFastFlags
fn from_element(element: CoFastFlag) -> CoFastFlags
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: &CoFastFlags) -> bool
fn is_superset(&self, other: &CoFastFlags) -> bool
fn is_disjoint(&self, other: &CoFastFlags) -> 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§fn bitor(self, rhs: CoFastFlags) -> <CoFastFlags as BitOr>::Output
fn bitor(self, rhs: CoFastFlags) -> <CoFastFlags as BitOr>::Output
Performs the
| operation. Read moreSource§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§fn bitxor(self, rhs: CoFastFlags) -> <CoFastFlags as BitXor>::Output
fn bitxor(self, rhs: CoFastFlags) -> <CoFastFlags as BitXor>::Output
Performs the
^ operation. Read moreSource§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
Source§fn clone(&self) -> CoFastFlags
fn clone(&self) -> CoFastFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CoFastFlags
Source§impl Debug for CoFastFlags
impl Debug for CoFastFlags
Source§impl Default for CoFastFlags
impl Default for CoFastFlags
Source§fn default() -> CoFastFlags
fn default() -> CoFastFlags
Returns the “default value” for a type. Read more
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>(&mut self, iter: I)where
I: IntoIterator<Item = CoFastFlag>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = CoFastFlag>,
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§fn from(bs: BitSet<u8, CoFastFlag>) -> CoFastFlags
fn from(bs: BitSet<u8, CoFastFlag>) -> CoFastFlags
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]) -> CoFastFlags
fn from(array: [CoFastFlag; N]) -> CoFastFlags
Converts to this type from the input type.
Source§impl FromIterator<CoFastFlag> for CoFastFlags
impl FromIterator<CoFastFlag> for CoFastFlags
Source§fn from_iter<I>(iter: I) -> CoFastFlagswhere
I: IntoIterator<Item = CoFastFlag>,
fn from_iter<I>(iter: I) -> CoFastFlagswhere
I: IntoIterator<Item = CoFastFlag>,
Creates a value from an iterator. Read more
Source§impl FromIterator<CoFastFlags> for CoFastFlags
impl FromIterator<CoFastFlags> for CoFastFlags
Source§fn from_iter<I>(iter: I) -> CoFastFlagswhere
I: IntoIterator<Item = CoFastFlags>,
fn from_iter<I>(iter: I) -> CoFastFlagswhere
I: IntoIterator<Item = CoFastFlags>,
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§fn into_iter(self) -> <CoFastFlags as IntoIterator>::IntoIter
fn into_iter(self) -> <CoFastFlags as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
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, <CoFastFlags as NamedFlags>::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§fn sub(self, rhs: CoFastFlags) -> <CoFastFlags as Sub>::Output
fn sub(self, rhs: CoFastFlags) -> <CoFastFlags as Sub>::Output
Performs the
- operation. Read moreSource§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Helper for T
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 moreSource§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
impl<T> PrimitiveIntRandomBounds for T
impl<T> PrimitiveSignedRandomBounds for T
impl<T> PyThreadingConstraint for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
fn rounding_into(self, rm: RoundingMode) -> (U, Ordering)
Source§impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
fn saturating_into(self) -> U
Source§impl<T> ToBinaryString for Twhere
T: Binary,
impl<T> ToBinaryString for Twhere
T: Binary,
Source§impl<T> ToCharString for Twhere
T: Display,
impl<T> ToCharString for Twhere
T: Display,
Source§fn try_to_char_string(&self) -> Result<CharString, ToCharStringError>
fn try_to_char_string(&self) -> Result<CharString, ToCharStringError>
Attempts to convert the value to a
CharString. Read moreSource§fn to_char_string(&self) -> CharString
fn to_char_string(&self) -> CharString
Converts the value to a
CharString. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more