pub struct MakeFunctionFlags(/* private fields */);Implementations§
Source§impl MakeFunctionFlags
impl MakeFunctionFlags
pub const fn new() -> MakeFunctionFlags
pub const fn empty() -> MakeFunctionFlags
pub const fn from_bits_retain(raw: u8) -> MakeFunctionFlags
pub const fn bits(&self) -> u8
pub const fn as_bits(&self) -> &u8
pub const unsafe fn from_bits_unchecked(bits: u8) -> MakeFunctionFlags
pub fn from_bits(bits: u8) -> Option<MakeFunctionFlags>
pub fn from_bits_truncate(bits: u8) -> MakeFunctionFlags
pub const fn from_element(element: MakeFunctionFlag) -> MakeFunctionFlags
pub const fn from_slice(slice: &[MakeFunctionFlag]) -> MakeFunctionFlags
pub const fn contains(&self, value: &MakeFunctionFlag) -> bool
pub const fn len(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn all() -> MakeFunctionFlags
pub fn is_all(&self) -> bool
pub fn complement(self) -> MakeFunctionFlags
pub fn toggle(&mut self, value: MakeFunctionFlag)
pub fn set(&mut self, value: MakeFunctionFlag, enabled: bool)
pub fn insert(&mut self, value: MakeFunctionFlag) -> bool
pub fn remove(&mut self, value: MakeFunctionFlag) -> bool
pub fn clear(&mut self)
pub const fn is_subset(&self, other: &MakeFunctionFlags) -> bool
pub const fn is_superset(&self, other: &MakeFunctionFlags) -> bool
pub const fn is_disjoint(&self, other: &MakeFunctionFlags) -> bool
pub fn first(&self) -> Option<MakeFunctionFlag>
pub fn last(&self) -> Option<MakeFunctionFlag>
pub fn pop_first(&mut self) -> Option<MakeFunctionFlag>
pub fn pop_last(&mut self) -> Option<MakeFunctionFlag>
pub fn retain(&mut self, f: impl FnMut(MakeFunctionFlag) -> bool)
pub fn iter(&self) -> PrimBitSetIter<u8, MakeFunctionFlag>
pub fn iter_names(
&self,
) -> impl Iterator<Item = (&'static str, MakeFunctionFlag)>where
MakeFunctionFlag: BitFlag,
pub fn from_name(name: &str) -> Option<MakeFunctionFlags>where
MakeFunctionFlag: BitFlag,
Trait Implementations§
Source§impl Binary for MakeFunctionFlags
impl Binary for MakeFunctionFlags
Source§impl BitAnd for MakeFunctionFlags
impl BitAnd for MakeFunctionFlags
Source§type Output = MakeFunctionFlags
type Output = MakeFunctionFlags
The resulting type after applying the
& operator.Source§fn bitand(self, rhs: MakeFunctionFlags) -> <MakeFunctionFlags as BitAnd>::Output
fn bitand(self, rhs: MakeFunctionFlags) -> <MakeFunctionFlags as BitAnd>::Output
Performs the
& operation. Read moreSource§impl BitAndAssign for MakeFunctionFlags
impl BitAndAssign for MakeFunctionFlags
Source§fn bitand_assign(&mut self, rhs: MakeFunctionFlags)
fn bitand_assign(&mut self, rhs: MakeFunctionFlags)
Performs the
&= operation. Read moreSource§impl BitFlagSet<MakeFunctionFlag, u8> for MakeFunctionFlags
impl BitFlagSet<MakeFunctionFlag, u8> for MakeFunctionFlags
const BITS: u8
fn empty() -> MakeFunctionFlags
fn from_bits_retain(raw: u8) -> MakeFunctionFlags
fn from_element(element: MakeFunctionFlag) -> MakeFunctionFlags
fn first(&self) -> Option<MakeFunctionFlag>
fn last(&self) -> Option<MakeFunctionFlag>
fn pop_first(&mut self) -> Option<MakeFunctionFlag>
fn pop_last(&mut self) -> Option<MakeFunctionFlag>
fn len(&self) -> usize
fn is_empty(&self) -> bool
fn insert(&mut self, value: MakeFunctionFlag) -> bool
fn remove(&mut self, value: MakeFunctionFlag) -> bool
fn is_subset(&self, other: &MakeFunctionFlags) -> bool
fn is_superset(&self, other: &MakeFunctionFlags) -> bool
fn is_disjoint(&self, other: &MakeFunctionFlags) -> bool
fn contains(&self, value: &MakeFunctionFlag) -> bool
fn retain(&mut self, f: impl FnMut(MakeFunctionFlag) -> bool)
fn iter(&self) -> PrimBitSetIter<u8, MakeFunctionFlag>
fn to_vec(&self) -> Vec<T>
Source§impl BitOr for MakeFunctionFlags
impl BitOr for MakeFunctionFlags
Source§type Output = MakeFunctionFlags
type Output = MakeFunctionFlags
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: MakeFunctionFlags) -> <MakeFunctionFlags as BitOr>::Output
fn bitor(self, rhs: MakeFunctionFlags) -> <MakeFunctionFlags as BitOr>::Output
Performs the
| operation. Read moreSource§impl BitOrAssign for MakeFunctionFlags
impl BitOrAssign for MakeFunctionFlags
Source§fn bitor_assign(&mut self, rhs: MakeFunctionFlags)
fn bitor_assign(&mut self, rhs: MakeFunctionFlags)
Performs the
|= operation. Read moreSource§impl BitXor for MakeFunctionFlags
impl BitXor for MakeFunctionFlags
Source§type Output = MakeFunctionFlags
type Output = MakeFunctionFlags
The resulting type after applying the
^ operator.Source§fn bitxor(self, rhs: MakeFunctionFlags) -> <MakeFunctionFlags as BitXor>::Output
fn bitxor(self, rhs: MakeFunctionFlags) -> <MakeFunctionFlags as BitXor>::Output
Performs the
^ operation. Read moreSource§impl BitXorAssign for MakeFunctionFlags
impl BitXorAssign for MakeFunctionFlags
Source§fn bitxor_assign(&mut self, rhs: MakeFunctionFlags)
fn bitxor_assign(&mut self, rhs: MakeFunctionFlags)
Performs the
^= operation. Read moreSource§impl Clone for MakeFunctionFlags
impl Clone for MakeFunctionFlags
Source§fn clone(&self) -> MakeFunctionFlags
fn clone(&self) -> MakeFunctionFlags
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 MakeFunctionFlags
impl Debug for MakeFunctionFlags
Source§impl Default for MakeFunctionFlags
impl Default for MakeFunctionFlags
Source§fn default() -> MakeFunctionFlags
fn default() -> MakeFunctionFlags
Returns the “default value” for a type. Read more
Source§impl Display for MakeFunctionFlagswhere
MakeFunctionFlag: BitFlag,
impl Display for MakeFunctionFlagswhere
MakeFunctionFlag: BitFlag,
Source§impl Extend<MakeFunctionFlag> for MakeFunctionFlags
impl Extend<MakeFunctionFlag> for MakeFunctionFlags
Source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = MakeFunctionFlag>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = MakeFunctionFlag>,
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<const N: usize> From<[MakeFunctionFlag; N]> for MakeFunctionFlags
impl<const N: usize> From<[MakeFunctionFlag; N]> for MakeFunctionFlags
Source§fn from(array: [MakeFunctionFlag; N]) -> MakeFunctionFlags
fn from(array: [MakeFunctionFlag; N]) -> MakeFunctionFlags
Converts to this type from the input type.
Source§impl From<BitSet<u8, MakeFunctionFlag>> for MakeFunctionFlags
impl From<BitSet<u8, MakeFunctionFlag>> for MakeFunctionFlags
Source§fn from(bs: BitSet<u8, MakeFunctionFlag>) -> MakeFunctionFlags
fn from(bs: BitSet<u8, MakeFunctionFlag>) -> MakeFunctionFlags
Converts to this type from the input type.
Source§impl FromIterator<MakeFunctionFlag> for MakeFunctionFlags
impl FromIterator<MakeFunctionFlag> for MakeFunctionFlags
Source§fn from_iter<I>(iter: I) -> MakeFunctionFlagswhere
I: IntoIterator<Item = MakeFunctionFlag>,
fn from_iter<I>(iter: I) -> MakeFunctionFlagswhere
I: IntoIterator<Item = MakeFunctionFlag>,
Creates a value from an iterator. Read more
Source§impl FromIterator<MakeFunctionFlags> for MakeFunctionFlags
impl FromIterator<MakeFunctionFlags> for MakeFunctionFlags
Source§fn from_iter<I>(iter: I) -> MakeFunctionFlagswhere
I: IntoIterator<Item = MakeFunctionFlags>,
fn from_iter<I>(iter: I) -> MakeFunctionFlagswhere
I: IntoIterator<Item = MakeFunctionFlags>,
Creates a value from an iterator. Read more
Source§impl IntoIterator for MakeFunctionFlags
impl IntoIterator for MakeFunctionFlags
Source§type Item = MakeFunctionFlag
type Item = MakeFunctionFlag
The type of the elements being iterated over.
Source§type IntoIter = PrimBitSetIter<u8, MakeFunctionFlag>
type IntoIter = PrimBitSetIter<u8, MakeFunctionFlag>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <MakeFunctionFlags as IntoIterator>::IntoIter
fn into_iter(self) -> <MakeFunctionFlags as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl LowerHex for MakeFunctionFlags
impl LowerHex for MakeFunctionFlags
Source§impl Not for MakeFunctionFlags
impl Not for MakeFunctionFlags
Source§impl Octal for MakeFunctionFlags
impl Octal for MakeFunctionFlags
Source§impl PartialEq for MakeFunctionFlags
impl PartialEq for MakeFunctionFlags
Source§impl Sub for MakeFunctionFlags
impl Sub for MakeFunctionFlags
Source§type Output = MakeFunctionFlags
type Output = MakeFunctionFlags
The resulting type after applying the
- operator.Source§fn sub(self, rhs: MakeFunctionFlags) -> <MakeFunctionFlags as Sub>::Output
fn sub(self, rhs: MakeFunctionFlags) -> <MakeFunctionFlags as Sub>::Output
Performs the
- operation. Read moreSource§impl SubAssign for MakeFunctionFlags
impl SubAssign for MakeFunctionFlags
Source§fn sub_assign(&mut self, rhs: MakeFunctionFlags)
fn sub_assign(&mut self, rhs: MakeFunctionFlags)
Performs the
-= operation. Read moreSource§impl UpperHex for MakeFunctionFlags
impl UpperHex for MakeFunctionFlags
impl Copy for MakeFunctionFlags
impl Eq for MakeFunctionFlags
impl StructuralPartialEq for MakeFunctionFlags
Auto Trait Implementations§
impl Freeze for MakeFunctionFlags
impl RefUnwindSafe for MakeFunctionFlags
impl Send for MakeFunctionFlags
impl Sync for MakeFunctionFlags
impl Unpin for MakeFunctionFlags
impl UnsafeUnpin for MakeFunctionFlags
impl UnwindSafe for MakeFunctionFlags
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<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.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)
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> 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