pub struct FileTest { /* private fields */ }Implementations
sourceimpl 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
sourceimpl BitAndAssign<FileTest> for FileTest
impl BitAndAssign<FileTest> for FileTest
sourcefn bitand_assign(&mut self, other: FileTest)
fn bitand_assign(&mut self, other: FileTest)
Disables all flags disabled in the set.
sourceimpl BitOrAssign<FileTest> for FileTest
impl BitOrAssign<FileTest> for FileTest
sourcefn bitor_assign(&mut self, other: FileTest)
fn bitor_assign(&mut self, other: FileTest)
Adds the set of flags.
sourceimpl BitXorAssign<FileTest> for FileTest
impl BitXorAssign<FileTest> for FileTest
sourcefn bitxor_assign(&mut self, other: FileTest)
fn bitxor_assign(&mut self, other: FileTest)
Toggles the set of flags.
sourceimpl Extend<FileTest> for FileTest
impl Extend<FileTest> for FileTest
sourcefn 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
sourcefn 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.
sourcefn 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
sourceimpl FromIterator<FileTest> for FileTest
impl FromIterator<FileTest> for FileTest
sourceimpl Ord for FileTest
impl Ord for FileTest
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<FileTest> for FileTest
impl PartialOrd<FileTest> for FileTest
sourcefn partial_cmp(&self, other: &FileTest) -> Option<Ordering>
fn partial_cmp(&self, other: &FileTest) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl SubAssign<FileTest> for FileTest
impl SubAssign<FileTest> for FileTest
sourcefn 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 StructuralEq for FileTest
impl StructuralPartialEq for FileTest
Auto Trait Implementations
impl RefUnwindSafe for FileTest
impl Send for FileTest
impl Sync for FileTest
impl Unpin for FileTest
impl UnwindSafe for FileTest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more