[][src]Struct czkawka_core::common_directory::Directories

pub struct Directories {
    pub excluded_directories: Vec<PathBuf>,
    pub included_directories: Vec<PathBuf>,
}

Fields

excluded_directories: Vec<PathBuf>included_directories: Vec<PathBuf>

Implementations

impl Directories[src]

pub fn new() -> Self[src]

pub fn set_included_directory(
    &mut self,
    included_directory: String,
    text_messages: &mut Messages
) -> bool
[src]

Setting included directories, at least one must be provided

pub fn set_excluded_directory(
    &mut self,
    excluded_directory: String,
    text_messages: &mut Messages
)
[src]

Setting absolute path to exclude

pub fn optimize_directories(
    &mut self,
    recursive_search: bool,
    text_messages: &mut Messages
) -> bool
[src]

Remove unused entries when included or excluded overlaps with each other or are duplicated etc.

pub fn is_excluded(&self, path: impl AsRef<Path>) -> bool[src]

Checks whether a specified directory is excluded from searching

Trait Implementations

impl Default for Directories[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.