pub struct Notes { /* private fields */ }Implementations§
Source§impl Notes
impl Notes
pub fn new<P: AsRef<Path>>(path: P) -> Self
pub fn delete_line(self, index: usize) -> Self
pub fn delete_range_lines(self, range: RangeInclusive<usize>) -> Self
pub fn append_line(self, line: &str) -> Self
pub fn insert_line(self, index: usize, line: &str) -> Self
pub fn get_line(&self, index: usize) -> String
pub fn get_range_lines(&self, range: RangeInclusive<usize>) -> String
pub fn count_lines(&self) -> usize
pub fn print_line(self, index: usize) -> Self
pub fn print_all_lines(self) -> Self
pub fn flush(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for Notes
impl RefUnwindSafe for Notes
impl Send for Notes
impl Sync for Notes
impl Unpin for Notes
impl UnsafeUnpin for Notes
impl UnwindSafe for Notes
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