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