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