pub struct ProjectDirs(pub HashMap<Directory, PathBuf>);
Tuple Fields§
§0: HashMap<Directory, PathBuf>
Implementations§
Trait Implementations§
Source§impl Clone for ProjectDirs
impl Clone for ProjectDirs
Source§fn clone(&self) -> ProjectDirs
fn clone(&self) -> ProjectDirs
Returns a duplicate of the value. Read more
1.0.0 · 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 ProjectDirs
impl Debug for ProjectDirs
Source§impl Filter for ProjectDirs
impl Filter for ProjectDirs
Source§fn filter_existing_dirs(&self) -> ProjectDirs
fn filter_existing_dirs(&self) -> ProjectDirs
Return only existing directories.
Source§fn filter_non_dirs(&self) -> ProjectDirs
fn filter_non_dirs(&self) -> ProjectDirs
Return only non-directory entries in places where directories are expected.
E.g.
log
file in the place of the log
directory.Source§fn filter_absent(&self) -> ProjectDirs
fn filter_absent(&self) -> ProjectDirs
Return only non-existing fs entries.
E.g. missing
log
directory.Source§fn filter_denied(&self) -> ProjectDirs
fn filter_denied(&self) -> ProjectDirs
Return only access denied fs entries.
E.g. no read and execute access to
log
directory.Source§fn filter_non_valid(&self) -> ProjectDirs
fn filter_non_valid(&self) -> ProjectDirs
Basically filter using
!path.is_dir()
, negation of the Filter::filter_existing_dirs
Source§impl From<FullProjectDirs> for ProjectDirs
impl From<FullProjectDirs> for ProjectDirs
Source§fn from(value: FullProjectDirs) -> Self
fn from(value: FullProjectDirs) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProjectDirs
impl PartialEq for ProjectDirs
Source§impl TryFrom<ProjectDirs> for FullProjectDirs
impl TryFrom<ProjectDirs> for FullProjectDirs
impl Eq for ProjectDirs
impl StructuralPartialEq for ProjectDirs
Auto Trait Implementations§
impl Freeze for ProjectDirs
impl RefUnwindSafe for ProjectDirs
impl Send for ProjectDirs
impl Sync for ProjectDirs
impl Unpin for ProjectDirs
impl UnwindSafe for ProjectDirs
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