pub struct TextFile { /* private fields */ }
Expand description
Structure of Novel text file
Implementations§
Source§impl<'file_handling> TextFile
Implementation for novel text structure
impl<'file_handling> TextFile
Implementation for novel text structure
Sourcepub fn format_and_save(
self,
path_to: &'file_handling str,
) -> Result<(), TextFileOutputError<'_>>
pub fn format_and_save( self, path_to: &'file_handling str, ) -> Result<(), TextFileOutputError<'_>>
Format file text and save
Return true if save was succeed
Return false if save was failed
§Example
use naromat::entities::text_file::TextFile;
let text = TextFile::new("./path/to/source/file.txt").unwrap();
text.format_and_save("./path/to/save.txt");
Auto Trait Implementations§
impl Freeze for TextFile
impl RefUnwindSafe for TextFile
impl Send for TextFile
impl Sync for TextFile
impl Unpin for TextFile
impl UnwindSafe for TextFile
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