pub struct Directory { /* private fields */ }
Implementations
sourceimpl Directory
impl Directory
pub fn from_title(parent: &Path, title: &str) -> Result<Self>
pub fn list_all(path: &Path) -> Result<Vec<Self>>
pub fn base_name(&self) -> &OsStr
pub fn copy_image_from(&self, path: &Path, file_exts: &[&OsStr]) -> Result<()>
pub fn delete(&self) -> Result<()>
pub fn image_file_name(
&self,
file_exts: &[OsString]
) -> Result<Option<OsString>>
pub fn load(&self) -> Result<Recipe>
pub fn path(&self) -> PathBuf
pub fn recipe_path(&self) -> PathBuf
pub fn store(&mut self, recipe: &Recipe) -> Result<()>
pub fn suffix(&self, title: &str) -> Option<&str>
pub fn update_from_title(&mut self, title: &str) -> Result<()>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnwindSafe for Directory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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