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