Skip to main content

MakeFunctionFlags

Struct MakeFunctionFlags 

Source
pub struct MakeFunctionFlags(/* private fields */);

Implementations§

Source§

impl MakeFunctionFlags

Source

pub const fn new() -> Self

Source

pub const fn empty() -> Self

Source

pub const fn from_bits_retain(raw: u8) -> Self

Source

pub const fn bits(&self) -> u8

Source

pub const fn as_bits(&self) -> &u8

Source

pub const unsafe fn from_bits_unchecked(bits: u8) -> Self

Source

pub fn from_bits(bits: u8) -> Option<Self>

Source

pub fn from_bits_truncate(bits: u8) -> Self

Source

pub const fn from_element(element: MakeFunctionFlag) -> Self

Source

pub const fn from_slice(slice: &[MakeFunctionFlag]) -> Self

Source

pub const fn contains(&self, value: &MakeFunctionFlag) -> bool

Source

pub const fn len(&self) -> usize

Source

pub const fn is_empty(&self) -> bool

Source

pub fn all() -> Self

Source

pub fn is_all(&self) -> bool

Source

pub fn complement(self) -> Self

Source

pub fn toggle(&mut self, value: MakeFunctionFlag)

Source

pub fn set(&mut self, value: MakeFunctionFlag, enabled: bool)

Source

pub fn insert(&mut self, value: MakeFunctionFlag) -> bool

Source

pub fn remove(&mut self, value: MakeFunctionFlag) -> bool

Source

pub fn clear(&mut self)

Source

pub const fn is_subset(&self, other: &Self) -> bool

Source

pub const fn is_superset(&self, other: &Self) -> bool

Source

pub const fn is_disjoint(&self, other: &Self) -> bool

Source

pub fn first(&self) -> Option<MakeFunctionFlag>

Source

pub fn last(&self) -> Option<MakeFunctionFlag>

Source

pub fn pop_first(&mut self) -> Option<MakeFunctionFlag>

Source

pub fn pop_last(&mut self) -> Option<MakeFunctionFlag>

Source

pub fn retain(&mut self, f: impl FnMut(MakeFunctionFlag) -> bool)

Source

pub fn iter(&self) -> PrimBitSetIter<u8, MakeFunctionFlag>

Source

pub fn iter_names( &self, ) -> impl Iterator<Item = (&'static str, MakeFunctionFlag)> + '_

Source

pub fn from_name(name: &str) -> Option<Self>

Trait Implementations§

Source§

impl Binary for MakeFunctionFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl BitAnd for MakeFunctionFlags

Source§

type Output = MakeFunctionFlags

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: MakeFunctionFlags) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAndAssign for MakeFunctionFlags

Source§

fn bitand_assign(&mut self, rhs: MakeFunctionFlags)

Performs the &= operation. Read more
Source§

impl BitFlagSet<MakeFunctionFlag, u8> for MakeFunctionFlags

Source§

const BITS: u8

Source§

fn empty() -> Self

Source§

fn from_bits_retain(raw: u8) -> Self

Source§

fn from_element(element: MakeFunctionFlag) -> Self

Source§

fn first(&self) -> Option<MakeFunctionFlag>

Source§

fn last(&self) -> Option<MakeFunctionFlag>

Source§

fn pop_first(&mut self) -> Option<MakeFunctionFlag>

Source§

fn pop_last(&mut self) -> Option<MakeFunctionFlag>

Source§

fn len(&self) -> usize

Source§

fn is_empty(&self) -> bool

Source§

fn insert(&mut self, value: MakeFunctionFlag) -> bool

Source§

fn remove(&mut self, value: MakeFunctionFlag) -> bool

Source§

fn is_subset(&self, other: &Self) -> bool

Source§

fn is_superset(&self, other: &Self) -> bool

Source§

fn is_disjoint(&self, other: &Self) -> bool

Source§

fn contains(&self, value: &MakeFunctionFlag) -> bool

Source§

fn retain(&mut self, f: impl FnMut(MakeFunctionFlag) -> bool)

Source§

fn iter(&self) -> PrimBitSetIter<u8, MakeFunctionFlag>

Source§

fn to_vec(&self) -> Vec<T>

Source§

impl BitOr for MakeFunctionFlags

Source§

type Output = MakeFunctionFlags

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: MakeFunctionFlags) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOrAssign for MakeFunctionFlags

Source§

fn bitor_assign(&mut self, rhs: MakeFunctionFlags)

Performs the |= operation. Read more
Source§

impl BitXor for MakeFunctionFlags

Source§

type Output = MakeFunctionFlags

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: MakeFunctionFlags) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign for MakeFunctionFlags

Source§

fn bitxor_assign(&mut self, rhs: MakeFunctionFlags)

Performs the ^= operation. Read more
Source§

impl Clone for MakeFunctionFlags

Source§

fn clone(&self) -> MakeFunctionFlags

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MakeFunctionFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MakeFunctionFlags

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for MakeFunctionFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Extend<MakeFunctionFlag> for MakeFunctionFlags

Source§

fn extend<I: IntoIterator<Item = MakeFunctionFlag>>(&mut self, iter: I)

Extends a collection with the contents of an iterator. Read more
Source§

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)

🔬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

Source§

fn from(array: [MakeFunctionFlag; N]) -> Self

Converts to this type from the input type.
Source§

impl From<BitSet<u8, MakeFunctionFlag>> for MakeFunctionFlags

Source§

fn from(bs: BitSet<u8, MakeFunctionFlag>) -> Self

Converts to this type from the input type.
Source§

impl From<MakeFunctionFlags> for BitSet<u8, MakeFunctionFlag>

Source§

fn from(val: MakeFunctionFlags) -> Self

Converts to this type from the input type.
Source§

impl FromIterator<MakeFunctionFlag> for MakeFunctionFlags

Source§

fn from_iter<I: IntoIterator<Item = MakeFunctionFlag>>(iter: I) -> Self

Creates a value from an iterator. Read more
Source§

impl FromIterator<MakeFunctionFlags> for MakeFunctionFlags

Source§

fn from_iter<I: IntoIterator<Item = MakeFunctionFlags>>(iter: I) -> Self

Creates a value from an iterator. Read more
Source§

impl IntoIterator for MakeFunctionFlags

Source§

type Item = MakeFunctionFlag

The type of the elements being iterated over.
Source§

type IntoIter = PrimBitSetIter<u8, MakeFunctionFlag>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl LowerHex for MakeFunctionFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Not for MakeFunctionFlags

Source§

type Output = MakeFunctionFlags

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Octal for MakeFunctionFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for MakeFunctionFlags

Source§

fn eq(&self, other: &MakeFunctionFlags) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Sub for MakeFunctionFlags

Source§

type Output = MakeFunctionFlags

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: MakeFunctionFlags) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign for MakeFunctionFlags

Source§

fn sub_assign(&mut self, rhs: MakeFunctionFlags)

Performs the -= operation. Read more
Source§

impl UpperHex for MakeFunctionFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for MakeFunctionFlags

Source§

impl Eq for MakeFunctionFlags

Source§

impl StructuralPartialEq for MakeFunctionFlags

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T, U> ExactFrom<T> for U
where U: TryFrom<T>,

Source§

fn exact_from(value: T) -> U

Source§

impl<T, U> ExactInto<U> for T
where U: ExactFrom<T>,

Source§

fn exact_into(self) -> U

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> OverflowingInto<U> for T
where U: OverflowingFrom<T>,

Source§

impl<T, U> RoundingInto<U> for T
where U: RoundingFrom<T>,

Source§

impl<T, U> SaturatingInto<U> for T
where U: SaturatingFrom<T>,

Source§

impl<T> ToBinaryString for T
where T: Binary,

Source§

fn to_binary_string(&self) -> String

Returns the String produced by Ts Binary implementation.

§Examples
use malachite_base::strings::ToBinaryString;

assert_eq!(5u64.to_binary_string(), "101");
assert_eq!((-100i16).to_binary_string(), "1111111110011100");
Source§

impl<T> ToDebugString for T
where T: Debug,

Source§

fn to_debug_string(&self) -> String

Returns the String produced by Ts Debug implementation.

§Examples
use malachite_base::strings::ToDebugString;

assert_eq!([1, 2, 3].to_debug_string(), "[1, 2, 3]");
assert_eq!(
    [vec![2, 3], vec![], vec![4]].to_debug_string(),
    "[[2, 3], [], [4]]"
);
assert_eq!(Some(5).to_debug_string(), "Some(5)");
Source§

impl<T> ToLowerHexString for T
where T: LowerHex,

Source§

fn to_lower_hex_string(&self) -> String

Returns the String produced by Ts LowerHex implementation.

§Examples
use malachite_base::strings::ToLowerHexString;

assert_eq!(50u64.to_lower_hex_string(), "32");
assert_eq!((-100i16).to_lower_hex_string(), "ff9c");
Source§

impl<T> ToOctalString for T
where T: Octal,

Source§

fn to_octal_string(&self) -> String

Returns the String produced by Ts Octal implementation.

§Examples
use malachite_base::strings::ToOctalString;

assert_eq!(50u64.to_octal_string(), "62");
assert_eq!((-100i16).to_octal_string(), "177634");
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToUpperHexString for T
where T: UpperHex,

Source§

fn to_upper_hex_string(&self) -> String

Returns the String produced by Ts UpperHex implementation.

§Examples
use malachite_base::strings::ToUpperHexString;

assert_eq!(50u64.to_upper_hex_string(), "32");
assert_eq!((-100i16).to_upper_hex_string(), "FF9C");
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> WrappingInto<U> for T
where U: WrappingFrom<T>,

Source§

fn wrapping_into(self) -> U