pub struct StdFileSystem;Trait Implementations§
Source§impl FileSystem for StdFileSystem
Available on non-WebAssembly only.
impl FileSystem for StdFileSystem
Available on non-WebAssembly only.
fn read_to_string(&self, path: &Path) -> Result<String>
fn write(&self, path: &Path, contents: &[u8]) -> Result<()>
fn create_dir_all(&self, path: &Path) -> Result<()>
fn rename(&self, from: &Path, to: &Path) -> Result<()>
fn exists(&self, path: &Path) -> bool
fn open_read(&self, path: &Path) -> Result<Box<dyn BufRead>>
fn open_write(&self, path: &Path) -> Result<Box<dyn Write>>
Auto Trait Implementations§
impl Freeze for StdFileSystem
impl RefUnwindSafe for StdFileSystem
impl Send for StdFileSystem
impl Sync for StdFileSystem
impl Unpin for StdFileSystem
impl UnwindSafe for StdFileSystem
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