pub struct RealIo();Trait Implementations§
source§impl Io for RealIo
impl Io for RealIo
type Args = Args
type Stdout = Stdout
type File = File
type Metadata = Metadata
fn args(&self) -> Self::Args
fn create(&self, path: &str) -> Result<Self::File>
fn open(&self, path: &str) -> Result<Self::File>
fn metadata(&self, path: &str) -> Result<Metadata>
fn create_dir(&self, path: &str) -> Result<()>
fn stdout(&self) -> Self::Stdout
fn read(&self, path: &str) -> Result<Vec<u8>>
fn read_to_string(&self, path: &str) -> Result<String>
fn write(&self, path: &str, data: &[u8]) -> Result<()>
Auto Trait Implementations§
impl RefUnwindSafe for RealIo
impl Send for RealIo
impl Sync for RealIo
impl Unpin for RealIo
impl UnwindSafe for RealIo
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