pub struct FileTest { /* private fields */ }
Implementations§
Source§impl FileTest
impl FileTest
pub const IS_REGULAR: FileTest
pub const IS_SYMLINK: FileTest
pub const IS_DIR: FileTest
pub const IS_EXECUTABLE: FileTest
pub const EXISTS: FileTest
Sourcepub fn from_bits(bits: u32) -> Option<FileTest>
pub fn from_bits(bits: u32) -> Option<FileTest>
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) -> FileTest
pub const fn from_bits_truncate(bits: u32) -> FileTest
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> FileTest
pub const unsafe fn from_bits_unchecked(bits: u32) -> FileTest
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: FileTest) -> bool
pub const fn intersects(&self, other: FileTest) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for FileTest
impl BitAndAssign for FileTest
Source§fn bitand_assign(&mut self, other: FileTest)
fn bitand_assign(&mut self, other: FileTest)
Disables all flags disabled in the set.
Source§impl BitOrAssign for FileTest
impl BitOrAssign for FileTest
Source§fn bitor_assign(&mut self, other: FileTest)
fn bitor_assign(&mut self, other: FileTest)
Adds the set of flags.
Source§impl BitXorAssign for FileTest
impl BitXorAssign for FileTest
Source§fn bitxor_assign(&mut self, other: FileTest)
fn bitxor_assign(&mut self, other: FileTest)
Toggles the set of flags.
Source§impl Extend<FileTest> for FileTest
impl Extend<FileTest> for FileTest
Source§fn extend<T: IntoIterator<Item = FileTest>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = FileTest>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<FileTest> for FileTest
impl FromIterator<FileTest> for FileTest
Source§impl Ord for FileTest
impl Ord for FileTest
Source§impl PartialOrd for FileTest
impl PartialOrd for FileTest
Source§impl SubAssign for FileTest
impl SubAssign for FileTest
Source§fn sub_assign(&mut self, other: FileTest)
fn sub_assign(&mut self, other: FileTest)
Disables all flags enabled in the set.
impl Copy for FileTest
impl Eq for FileTest
impl StructuralPartialEq for FileTest
Auto Trait Implementations§
impl Freeze for FileTest
impl RefUnwindSafe for FileTest
impl Send for FileTest
impl Sync for FileTest
impl Unpin for FileTest
impl UnwindSafe for FileTest
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
Mutably borrows from an owned value. Read more