Struct re_renderer::SearchPath
source · pub struct SearchPath { /* private fields */ }Expand description
Specifies where to look for imports when both absolute and relative resolution fail.
This is akin to the standard $PATH environment variable.
Implementations§
source§impl SearchPath
impl SearchPath
pub fn from_env() -> Self
sourcepub fn push(&mut self, dir: impl AsRef<Path>)
pub fn push(&mut self, dir: impl AsRef<Path>)
Push a path to search path.
The path is normalized first, but not canonicalized.
Trait Implementations§
source§impl Clone for SearchPath
impl Clone for SearchPath
source§fn clone(&self) -> SearchPath
fn clone(&self) -> SearchPath
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 SearchPath
impl Debug for SearchPath
source§impl Default for SearchPath
impl Default for SearchPath
source§fn default() -> SearchPath
fn default() -> SearchPath
Returns the “default value” for a type. Read more
source§impl Display for SearchPath
impl Display for SearchPath
source§impl FromStr for SearchPath
impl FromStr for SearchPath
source§impl PartialEq<SearchPath> for SearchPath
impl PartialEq<SearchPath> for SearchPath
source§fn eq(&self, other: &SearchPath) -> bool
fn eq(&self, other: &SearchPath) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for SearchPath
impl StructuralEq for SearchPath
impl StructuralPartialEq for SearchPath
Auto Trait Implementations§
impl RefUnwindSafe for SearchPath
impl Send for SearchPath
impl Sync for SearchPath
impl Unpin for SearchPath
impl UnwindSafe for SearchPath
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
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.