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