pub struct TomlStorage { /* private fields */ }Implementations§
Source§impl TomlStorage
impl TomlStorage
pub fn new(path: PathBuf) -> TomlStorage
Sourcepub fn default_path() -> Result<PathBuf, Error>
pub fn default_path() -> Result<PathBuf, Error>
Default config path: ~/.config/bookmarks/bookmarks.toml
Sourcepub fn cwd_path() -> Option<PathBuf>
pub fn cwd_path() -> Option<PathBuf>
Local config path: ./bookmarks.toml in the current working directory.
pub fn with_default_path() -> Result<TomlStorage, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TomlStorage
impl RefUnwindSafe for TomlStorage
impl Send for TomlStorage
impl Sync for TomlStorage
impl Unpin for TomlStorage
impl UnsafeUnpin for TomlStorage
impl UnwindSafe for TomlStorage
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