pub struct FileEngine;Implementations§
Source§impl FileEngine
impl FileEngine
pub fn new() -> Self
pub fn copy( &self, source: impl Into<PathBuf>, dest: impl Into<PathBuf>, ) -> CopyBuilder
pub fn move_path( &self, source: impl Into<PathBuf>, dest: impl Into<PathBuf>, ) -> MoveBuilder
Sourcepub fn move_many(
&self,
sources: impl IntoIterator<Item = impl Into<PathBuf>>,
dest: impl Into<PathBuf>,
) -> MoveManyBuilder
pub fn move_many( &self, sources: impl IntoIterator<Item = impl Into<PathBuf>>, dest: impl Into<PathBuf>, ) -> MoveManyBuilder
Moves several independent sources into one destination directory
as a single batched operation. dest is always a directory the
sources land inside (each keeps its own basename), unlike
.move_path()’s dest, which can be a rename target.
pub fn analyze(&self, path: impl Into<PathBuf>) -> AnalyzeBuilder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileEngine
impl RefUnwindSafe for FileEngine
impl Send for FileEngine
impl Sync for FileEngine
impl Unpin for FileEngine
impl UnsafeUnpin for FileEngine
impl UnwindSafe for FileEngine
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more