pub enum FileTestOp {
Exists,
IsFile,
IsDir,
Readable,
Writable,
Executable,
}Expand description
File test operators for [[ ]].
Variants§
Exists
-e - exists
IsFile
-f - is regular file
IsDir
-d - is directory
Readable
-r - is readable
Writable
-w - is writable
Executable
-x - is executable
Trait Implementations§
Source§impl Clone for FileTestOp
impl Clone for FileTestOp
Source§fn clone(&self) -> FileTestOp
fn clone(&self) -> FileTestOp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileTestOp
impl Debug for FileTestOp
Source§impl Display for FileTestOp
impl Display for FileTestOp
Source§impl PartialEq for FileTestOp
impl PartialEq for FileTestOp
impl Copy for FileTestOp
impl Eq for FileTestOp
impl StructuralPartialEq for FileTestOp
Auto Trait Implementations§
impl Freeze for FileTestOp
impl RefUnwindSafe for FileTestOp
impl Send for FileTestOp
impl Sync for FileTestOp
impl Unpin for FileTestOp
impl UnwindSafe for FileTestOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.