pub struct RmOptions {
pub recursive: bool,
pub preserve_root: bool,
pub one_file_system: bool,
pub empty_dir: bool,
pub expand_env: bool,
pub use_glob: bool,
}Fields§
§recursive: boolRemove directories and their contenst recursively.
preserve_root: boolTreat / specially.
one_file_system: boolWhen removing a hierarchy recursively, skip any directory that is on a file system different from that of the corresponding argument.
empty_dir: boolRemove empty directories.
expand_env: boolExpand environment variables in path with expand_env().
use_glob: boolMatch shell style patterns in path.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RmOptions
impl RefUnwindSafe for RmOptions
impl Send for RmOptions
impl Sync for RmOptions
impl Unpin for RmOptions
impl UnwindSafe for RmOptions
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