Struct vfs::impls::memory::MemoryFS [−][src]
An ephemeral in-memory file system, intended mainly for unit tests
Implementations
impl MemoryFS
[src]
Trait Implementations
impl Debug for MemoryFS
[src]
impl Default for MemoryFS
[src]
impl FileSystem for MemoryFS
[src]
fn read_dir(&self, path: &str) -> VfsResult<Box<dyn Iterator<Item = String>>>
[src]
fn create_dir(&self, path: &str) -> VfsResult<()>
[src]
fn open_file(&self, path: &str) -> VfsResult<Box<dyn SeekAndRead>>
[src]
fn create_file(&self, path: &str) -> VfsResult<Box<dyn Write>>
[src]
fn append_file(&self, path: &str) -> VfsResult<Box<dyn Write>>
[src]
fn metadata(&self, path: &str) -> VfsResult<VfsMetadata>
[src]
fn exists(&self, path: &str) -> VfsResult<bool>
[src]
fn remove_file(&self, path: &str) -> VfsResult<()>
[src]
fn remove_dir(&self, path: &str) -> VfsResult<()>
[src]
fn copy_file(&self, _src: &str, _dest: &str) -> VfsResult<()>
[src]
fn move_file(&self, _src: &str, _dest: &str) -> VfsResult<()>
[src]
fn move_dir(&self, _src: &str, _dest: &str) -> VfsResult<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryFS
impl Send for MemoryFS
impl Sync for MemoryFS
impl Unpin for MemoryFS
impl UnwindSafe for MemoryFS
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,