pub struct StdFs;Expand description
Default Vfs backed by std::fs. Stateless, cheap to clone.
Implementations§
Trait Implementations§
Source§impl Vfs for StdFs
impl Vfs for StdFs
Source§fn open_write(&self, path: &Path) -> Result<Box<dyn VfsWrite>>
fn open_write(&self, path: &Path) -> Result<Box<dyn VfsWrite>>
Open
path for writing, creating it if it does not exist. Read moreSource§fn create_dir_all(&self, path: &Path) -> Result<()>
fn create_dir_all(&self, path: &Path) -> Result<()>
Create
path and every missing ancestor directory.impl Copy for StdFs
Auto Trait Implementations§
impl Freeze for StdFs
impl RefUnwindSafe for StdFs
impl Send for StdFs
impl Sync for StdFs
impl Unpin for StdFs
impl UnsafeUnpin for StdFs
impl UnwindSafe for StdFs
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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