pub struct MemFS { /* private fields */ }
Implementations§
Source§impl MemFS
impl MemFS
pub fn new() -> Self
pub fn create_dir<P>(&self, path: P) -> Result<()>
pub fn create_dir_all<P>(&self, path: P) -> Result<()>
pub fn create_file<P>(&self, path: P) -> Result<File>
pub fn open_file<P>(&self, path: P) -> Result<File>
pub fn is_dir<P>(&self, path: P) -> Result<bool>
pub fn is_file<P>(&self, path: P) -> Result<bool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemFS
impl RefUnwindSafe for MemFS
impl Send for MemFS
impl Sync for MemFS
impl Unpin for MemFS
impl UnwindSafe for MemFS
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