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