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