Enum icon_loader::SearchPaths
source · pub enum SearchPaths {
System,
Custom(Vec<PathBuf>),
}
Expand description
Enum that provides a list of directories to IconLoader
to search for icons in.
Variants§
Implementations§
source§impl SearchPaths
impl SearchPaths
sourcepub fn custom<I, P>(iter: I) -> Selfwhere
I: IntoIterator<Item = P>,
P: Into<PathBuf>,
pub fn custom<I, P>(iter: I) -> Selfwhere I: IntoIterator<Item = P>, P: Into<PathBuf>,
Creates a custom SearchPaths
from a list of directories.
Trait Implementations§
source§impl Clone for SearchPaths
impl Clone for SearchPaths
source§fn clone(&self) -> SearchPaths
fn clone(&self) -> SearchPaths
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 SearchPaths
impl Debug for SearchPaths
source§impl Default for SearchPaths
impl Default for SearchPaths
source§fn default() -> SearchPaths
fn default() -> SearchPaths
Returns the “default value” for a type. Read more
source§impl<I, P> From<I> for SearchPathswhere
I: IntoIterator<Item = P>,
P: Into<PathBuf>,
impl<I, P> From<I> for SearchPathswhere I: IntoIterator<Item = P>, P: Into<PathBuf>,
source§impl PartialEq<SearchPaths> for SearchPaths
impl PartialEq<SearchPaths> for SearchPaths
source§fn 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 ==
.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§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more