pub struct Miscselect { /* private fields */ }Implementations§
Source§impl Miscselect
impl Miscselect
pub const EXINFO: Miscselect
Sourcepub const fn empty() -> Miscselect
pub const fn empty() -> Miscselect
Returns an empty set of flags
Sourcepub const fn all() -> Miscselect
pub const fn all() -> Miscselect
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<Miscselect>
pub fn from_bits(bits: u32) -> Option<Miscselect>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> Miscselect
pub const fn from_bits_truncate(bits: u32) -> Miscselect
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> Miscselect
pub const unsafe fn from_bits_unchecked(bits: u32) -> Miscselect
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: Miscselect) -> bool
pub const fn intersects(&self, other: Miscselect) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: Miscselect) -> bool
pub const fn contains(&self, other: Miscselect) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: Miscselect)
pub fn insert(&mut self, other: Miscselect)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: Miscselect)
pub fn remove(&mut self, other: Miscselect)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: Miscselect)
pub fn toggle(&mut self, other: Miscselect)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: Miscselect, value: bool)
pub fn set(&mut self, other: Miscselect, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for Miscselect
impl Binary for Miscselect
Source§impl BitAnd for Miscselect
impl BitAnd for Miscselect
Source§fn bitand(self, other: Miscselect) -> Miscselect
fn bitand(self, other: Miscselect) -> Miscselect
Returns the intersection between the two sets of flags.
Source§type Output = Miscselect
type Output = Miscselect
& operator.Source§impl BitAndAssign for Miscselect
impl BitAndAssign for Miscselect
Source§fn bitand_assign(&mut self, other: Miscselect)
fn bitand_assign(&mut self, other: Miscselect)
Disables all flags disabled in the set.
Source§impl BitOr for Miscselect
impl BitOr for Miscselect
Source§fn bitor(self, other: Miscselect) -> Miscselect
fn bitor(self, other: Miscselect) -> Miscselect
Returns the union of the two sets of flags.
Source§type Output = Miscselect
type Output = Miscselect
| operator.Source§impl BitOrAssign for Miscselect
impl BitOrAssign for Miscselect
Source§fn bitor_assign(&mut self, other: Miscselect)
fn bitor_assign(&mut self, other: Miscselect)
Adds the set of flags.
Source§impl BitXor for Miscselect
impl BitXor for Miscselect
Source§fn bitxor(self, other: Miscselect) -> Miscselect
fn bitxor(self, other: Miscselect) -> Miscselect
Returns the left flags, but with all the right flags toggled.
Source§type Output = Miscselect
type Output = Miscselect
^ operator.Source§impl BitXorAssign for Miscselect
impl BitXorAssign for Miscselect
Source§fn bitxor_assign(&mut self, other: Miscselect)
fn bitxor_assign(&mut self, other: Miscselect)
Toggles the set of flags.
Source§impl Clone for Miscselect
impl Clone for Miscselect
Source§fn clone(&self) -> Miscselect
fn clone(&self) -> Miscselect
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Miscselect
Source§impl Debug for Miscselect
impl Debug for Miscselect
Source§impl Default for Miscselect
impl Default for Miscselect
Source§fn default() -> Miscselect
fn default() -> Miscselect
impl Eq for Miscselect
Source§impl Extend<Miscselect> for Miscselect
impl Extend<Miscselect> for Miscselect
Source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = Miscselect>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = Miscselect>,
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<Miscselect> for Miscselect
impl FromIterator<Miscselect> for Miscselect
Source§fn from_iter<T>(iterator: T) -> Miscselectwhere
T: IntoIterator<Item = Miscselect>,
fn from_iter<T>(iterator: T) -> Miscselectwhere
T: IntoIterator<Item = Miscselect>,
Source§impl Hash for Miscselect
impl Hash for Miscselect
Source§impl LowerHex for Miscselect
impl LowerHex for Miscselect
Source§impl Not for Miscselect
impl Not for Miscselect
Source§fn not(self) -> Miscselect
fn not(self) -> Miscselect
Returns the complement of this set of flags.
Source§type Output = Miscselect
type Output = Miscselect
! operator.Source§impl Octal for Miscselect
impl Octal for Miscselect
Source§impl Ord for Miscselect
impl Ord for Miscselect
Source§fn cmp(&self, other: &Miscselect) -> Ordering
fn cmp(&self, other: &Miscselect) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for Miscselect
impl PartialEq for Miscselect
Source§impl PartialOrd for Miscselect
impl PartialOrd for Miscselect
impl StructuralPartialEq for Miscselect
Source§impl Sub for Miscselect
impl Sub for Miscselect
Source§fn sub(self, other: Miscselect) -> Miscselect
fn sub(self, other: Miscselect) -> Miscselect
Returns the set difference of the two sets of flags.
Source§type Output = Miscselect
type Output = Miscselect
- operator.Source§impl SubAssign for Miscselect
impl SubAssign for Miscselect
Source§fn sub_assign(&mut self, other: Miscselect)
fn sub_assign(&mut self, other: Miscselect)
Disables all flags enabled in the set.