pub enum TakeOption {
MustExist,
DenyExisting,
Take {
make: bool,
},
}Expand description
§Take option
Variants§
MustExist
§Must exist
DenyExisting
§Deny existing
Take
§Just take whatever it is
Fields
§§If the path does not exist, and this flag is
make: bool§If the path does not exist, and this flag is true, make it
- If
PathKind::Directoryis used, make new directory viafs::create_dir_all(). - If
PathKind::Fileis used, make new empty file viaFile::create().
Trait Implementations§
Source§impl Debug for TakeOption
impl Debug for TakeOption
impl Eq for TakeOption
Source§impl Hash for TakeOption
impl Hash for TakeOption
Source§impl PartialEq for TakeOption
impl PartialEq for TakeOption
impl StructuralPartialEq for TakeOption
Auto Trait Implementations§
impl Freeze for TakeOption
impl RefUnwindSafe for TakeOption
impl Send for TakeOption
impl Sync for TakeOption
impl Unpin for TakeOption
impl UnsafeUnpin for TakeOption
impl UnwindSafe for TakeOption
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