pub struct RealFileSystem;Expand description
Production filesystem implementation using std::fs.
Implementations§
Trait Implementations§
Source§impl Clone for RealFileSystem
impl Clone for RealFileSystem
Source§fn clone(&self) -> RealFileSystem
fn clone(&self) -> RealFileSystem
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 RealFileSystem
impl Debug for RealFileSystem
Source§impl Default for RealFileSystem
impl Default for RealFileSystem
Source§fn default() -> RealFileSystem
fn default() -> RealFileSystem
Returns the “default value” for a type. Read more
Source§impl FileSystem for RealFileSystem
impl FileSystem for RealFileSystem
Source§fn read_to_string(&self, path: &Path) -> Result<String>
fn read_to_string(&self, path: &Path) -> Result<String>
Reads the contents of a file as a UTF-8 string.
Source§fn write(&self, path: &Path, contents: &str) -> Result<()>
fn write(&self, path: &Path, contents: &str) -> Result<()>
Writes string contents to a file, creating parent directories as needed.
Auto Trait Implementations§
impl Freeze for RealFileSystem
impl RefUnwindSafe for RealFileSystem
impl Send for RealFileSystem
impl Sync for RealFileSystem
impl Unpin for RealFileSystem
impl UnwindSafe for RealFileSystem
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