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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more