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