[−][src]Struct rvs_parser::SearchPath
Implementations
impl SearchPath
[src]
pub fn new(paths: Vec<PathBuf>) -> SearchPath
[src]
pub fn from_string(s: &str) -> Result<SearchPath>
[src]
Sets the search path used for import
The string must be a colon separated list of paths.
Errors
An error will be returned if any of the parsed paths do not exist. If the search path string contains a mix of paths that do and do not exist, none of the paths will be added to the internal search path.
pub fn find(&self, path: &Path) -> Result<PathBuf>
[src]
Trait Implementations
impl Clone for SearchPath
[src]
pub fn clone(&self) -> SearchPath
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SearchPath
[src]
impl Default for SearchPath
[src]
pub fn default() -> SearchPath
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,