Struct broot::path::SpecialPaths
source · pub struct SpecialPaths {
pub entries: Vec<SpecialPath>,
}
Fields§
§entries: Vec<SpecialPath>
Implementations§
source§impl SpecialPaths
impl SpecialPaths
pub fn find<P: AsRef<Path>>(&self, path: P) -> SpecialHandling
pub fn show(&self, path: &Path) -> Directive
pub fn list(&self, path: &Path) -> Directive
pub fn sum(&self, path: &Path) -> Directive
sourcepub fn add_default(&mut self, path: &str, handling: SpecialHandling)
pub fn add_default(&mut self, path: &str, handling: SpecialHandling)
Add a special handling, if none was previously defined for that path
pub fn add_defaults(&mut self)
Trait Implementations§
source§impl Clone for SpecialPaths
impl Clone for SpecialPaths
source§fn clone(&self) -> SpecialPaths
fn clone(&self) -> SpecialPaths
Returns a copy 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 SpecialPaths
impl Debug for SpecialPaths
Auto Trait Implementations§
impl RefUnwindSafe for SpecialPaths
impl Send for SpecialPaths
impl Sync for SpecialPaths
impl Unpin for SpecialPaths
impl UnwindSafe for SpecialPaths
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