pub struct NotesStore { /* private fields */ }Implementations§
Source§impl NotesStore
impl NotesStore
pub fn load(root: &Path) -> Result<Self>
pub fn path(&self) -> &Path
pub fn document(&self) -> &NotesDocument
pub fn document_mut(&mut self) -> &mut NotesDocument
pub fn notes(&self) -> &[Note]
pub fn insert(&mut self, note: Note) -> Result<()>
pub fn save(&mut self) -> Result<()>
Trait Implementations§
Source§impl Clone for NotesStore
impl Clone for NotesStore
Source§fn clone(&self) -> NotesStore
fn clone(&self) -> NotesStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotesStore
impl Debug for NotesStore
impl Eq for NotesStore
Source§impl PartialEq for NotesStore
impl PartialEq for NotesStore
impl StructuralPartialEq for NotesStore
Auto Trait Implementations§
impl Freeze for NotesStore
impl RefUnwindSafe for NotesStore
impl Send for NotesStore
impl Sync for NotesStore
impl Unpin for NotesStore
impl UnsafeUnpin for NotesStore
impl UnwindSafe for NotesStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more