pub struct XattrFlags { /* private fields */ }
Implementations§
Source§impl XattrFlags
impl XattrFlags
Sourcepub fn empty() -> XattrFlags
pub fn empty() -> XattrFlags
Returns an empty set of flags.
Sourcepub fn all() -> XattrFlags
pub fn all() -> XattrFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<XattrFlags>
pub fn from_bits(bits: u32) -> Option<XattrFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: u32) -> XattrFlags
pub fn from_bits_truncate(bits: u32) -> XattrFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: XattrFlags) -> bool
pub fn intersects(&self, other: XattrFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub fn contains(&self, other: XattrFlags) -> bool
pub fn contains(&self, other: XattrFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: XattrFlags)
pub fn insert(&mut self, other: XattrFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: XattrFlags)
pub fn remove(&mut self, other: XattrFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: XattrFlags)
pub fn toggle(&mut self, other: XattrFlags)
Toggles the specified flags in-place.
Source§impl XattrFlags
impl XattrFlags
Trait Implementations§
Source§impl BitAnd for XattrFlags
impl BitAnd for XattrFlags
Source§fn bitand(self, other: XattrFlags) -> XattrFlags
fn bitand(self, other: XattrFlags) -> XattrFlags
Returns the intersection between the two sets of flags.
Source§type Output = XattrFlags
type Output = XattrFlags
&
operator.Source§impl BitAndAssign for XattrFlags
impl BitAndAssign for XattrFlags
Source§fn bitand_assign(&mut self, other: XattrFlags)
fn bitand_assign(&mut self, other: XattrFlags)
Disables all flags disabled in the set.
Source§impl BitOr for XattrFlags
impl BitOr for XattrFlags
Source§fn bitor(self, other: XattrFlags) -> XattrFlags
fn bitor(self, other: XattrFlags) -> XattrFlags
Returns the union of the two sets of flags.
Source§type Output = XattrFlags
type Output = XattrFlags
|
operator.Source§impl BitOrAssign for XattrFlags
impl BitOrAssign for XattrFlags
Source§fn bitor_assign(&mut self, other: XattrFlags)
fn bitor_assign(&mut self, other: XattrFlags)
Adds the set of flags.
Source§impl BitXor for XattrFlags
impl BitXor for XattrFlags
Source§fn bitxor(self, other: XattrFlags) -> XattrFlags
fn bitxor(self, other: XattrFlags) -> XattrFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = XattrFlags
type Output = XattrFlags
^
operator.Source§impl BitXorAssign for XattrFlags
impl BitXorAssign for XattrFlags
Source§fn bitxor_assign(&mut self, other: XattrFlags)
fn bitxor_assign(&mut self, other: XattrFlags)
Toggles the set of flags.
Source§impl Clone for XattrFlags
impl Clone for XattrFlags
Source§fn clone(&self) -> XattrFlags
fn clone(&self) -> XattrFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for XattrFlags
impl Debug for XattrFlags
Source§impl Extend<XattrFlags> for XattrFlags
impl Extend<XattrFlags> for XattrFlags
Source§fn extend<T: IntoIterator<Item = XattrFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = XattrFlags>>(&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<XattrFlags> for XattrFlags
impl FromIterator<XattrFlags> for XattrFlags
Source§fn from_iter<T: IntoIterator<Item = XattrFlags>>(iterator: T) -> XattrFlags
fn from_iter<T: IntoIterator<Item = XattrFlags>>(iterator: T) -> XattrFlags
Source§impl Hash for XattrFlags
impl Hash for XattrFlags
Source§impl Not for XattrFlags
impl Not for XattrFlags
Source§fn not(self) -> XattrFlags
fn not(self) -> XattrFlags
Returns the complement of this set of flags.
Source§type Output = XattrFlags
type Output = XattrFlags
!
operator.Source§impl Ord for XattrFlags
impl Ord for XattrFlags
Source§fn cmp(&self, other: &XattrFlags) -> Ordering
fn cmp(&self, other: &XattrFlags) -> 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 XattrFlags
impl PartialEq for XattrFlags
Source§impl PartialOrd for XattrFlags
impl PartialOrd for XattrFlags
Source§impl Sub for XattrFlags
impl Sub for XattrFlags
Source§fn sub(self, other: XattrFlags) -> XattrFlags
fn sub(self, other: XattrFlags) -> XattrFlags
Returns the set difference of the two sets of flags.
Source§type Output = XattrFlags
type Output = XattrFlags
-
operator.Source§impl SubAssign for XattrFlags
impl SubAssign for XattrFlags
Source§fn sub_assign(&mut self, other: XattrFlags)
fn sub_assign(&mut self, other: XattrFlags)
Disables all flags enabled in the set.
impl Copy for XattrFlags
impl Eq for XattrFlags
impl StructuralPartialEq for XattrFlags
Auto Trait Implementations§
impl Freeze for XattrFlags
impl RefUnwindSafe for XattrFlags
impl Send for XattrFlags
impl Sync for XattrFlags
impl Unpin for XattrFlags
impl UnwindSafe for XattrFlags
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)