Enum icon_loader::SearchPaths
source · [−]Expand description
Enum that provides a list of directories to IconLoader to search for icons in.
Variants
System
Uses the xdg crate for system icon paths.
Custom(Vec<PathBuf>)
A custom set of paths.
Implementations
sourceimpl SearchPaths
impl SearchPaths
sourcepub fn custom<I, P>(iter: I) -> Self where
I: IntoIterator<Item = P>,
P: Into<PathBuf>,
pub fn custom<I, P>(iter: I) -> Self where
I: IntoIterator<Item = P>,
P: Into<PathBuf>,
Creates a custom SearchPaths from a list of directories.
Trait Implementations
sourceimpl Clone for SearchPaths
impl Clone for SearchPaths
sourcefn clone(&self) -> SearchPaths
fn clone(&self) -> SearchPaths
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SearchPaths
impl Debug for SearchPaths
sourceimpl<I, P> From<I> for SearchPaths where
I: IntoIterator<Item = P>,
P: Into<PathBuf>,
impl<I, P> From<I> for SearchPaths where
I: IntoIterator<Item = P>,
P: Into<PathBuf>,
sourceimpl PartialEq<SearchPaths> for SearchPaths
impl PartialEq<SearchPaths> for SearchPaths
sourcefn eq(&self, other: &SearchPaths) -> bool
fn eq(&self, other: &SearchPaths) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SearchPaths) -> bool
fn ne(&self, other: &SearchPaths) -> bool
This method tests for !=.
impl Eq for SearchPaths
impl StructuralEq for SearchPaths
impl StructuralPartialEq for SearchPaths
Auto Trait Implementations
impl RefUnwindSafe for SearchPaths
impl Send for SearchPaths
impl Sync for SearchPaths
impl Unpin for SearchPaths
impl UnwindSafe for SearchPaths
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more