pub struct File;
Expand description
A no-op struct that allows you to easily manipulate files.
Implementations§
Source§impl File
impl File
Sourcepub fn read<P: AsRef<Path>>(path: P) -> Result<String, String>
pub fn read<P: AsRef<Path>>(path: P) -> Result<String, String>
Read a file at path
into a String.
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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