pub struct DummyIO;
Expand description
Dummy implementation of EvalIO
, can be used in contexts where
IO is not available but code should “pretend” that it is.
Trait Implementations§
source§impl EvalIO for DummyIO
impl EvalIO for DummyIO
source§fn path_exists(&self, _: &Path) -> Result<bool>
fn path_exists(&self, _: &Path) -> Result<bool>
Verify whether the file at the specified path exists. Read more
source§fn open(&self, _: &Path) -> Result<Box<dyn Read>>
fn open(&self, _: &Path) -> Result<Box<dyn Read>>
Open the file at the specified path to a
io::Read
.source§fn file_type(&self, _: &Path) -> Result<FileType>
fn file_type(&self, _: &Path) -> Result<FileType>
Return the FileType of the given path, or an error if it doesn’t
exist.
Auto Trait Implementations§
impl Freeze for DummyIO
impl RefUnwindSafe for DummyIO
impl Send for DummyIO
impl Sync for DummyIO
impl Unpin for DummyIO
impl UnwindSafe for DummyIO
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