pub struct Skribe { /* private fields */ }
Implementations
sourceimpl Skribe
impl Skribe
pub fn new() -> Skribe
pub fn get(&self, id: &Id) -> Option<&Item>
pub fn get_mut(&mut self, id: &Id) -> Option<&mut Item>
pub fn get_items(&self) -> &HashMap<Id, Item>
pub fn create_item() -> Item
pub fn save_item(&mut self, item: Item) -> Option<Item>
pub fn delete_item(&mut self, id: &Id) -> Option<Item>
pub fn init() -> Result<Self, Error>
pub fn get_home(&self) -> &PathBuf
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Skribe
impl Send for Skribe
impl Sync for Skribe
impl Unpin for Skribe
impl UnwindSafe for Skribe
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more