Struct stblib::file::FileHandler
source · pub struct FileHandler;
Implementations§
source§impl FileHandler
impl FileHandler
sourcepub fn read_file(file_path: &str) -> String
pub fn read_file(file_path: &str) -> String
§Panics
- Will panic if file is not readable
- Will panic if your current user does not have the required permissions to open the file
sourcepub fn write_to_file(file_path: &str, content: &str)
pub fn write_to_file(file_path: &str, content: &str)
§Panics
- Will panic if file is not writeable
- Will panic if your current user does not have the required permissions to open the file
Auto Trait Implementations§
impl RefUnwindSafe for FileHandler
impl Send for FileHandler
impl Sync for FileHandler
impl Unpin for FileHandler
impl UnwindSafe for FileHandler
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