pub struct StdIO;
Expand description
Implementation of EvalIO
that simply uses the equivalent
standard library functions, i.e. does local file-IO.
Trait Implementations§
source§impl EvalIO for StdIO
impl EvalIO for StdIO
source§fn path_exists(&self, path: &Path) -> Result<bool>
fn path_exists(&self, path: &Path) -> Result<bool>
Verify whether the file at the specified path exists. Read more
source§fn open(&self, path: &Path) -> Result<Box<dyn Read>>
fn open(&self, path: &Path) -> Result<Box<dyn Read>>
Open the file at the specified path to a
io::Read
.source§fn file_type(&self, path: &Path) -> Result<FileType>
fn file_type(&self, path: &Path) -> Result<FileType>
Return the FileType of the given path, or an error if it doesn’t
exist.
Auto Trait Implementations§
impl Freeze for StdIO
impl RefUnwindSafe for StdIO
impl Send for StdIO
impl Sync for StdIO
impl Unpin for StdIO
impl UnwindSafe for StdIO
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