Struct rvs::SearchPath
[−]
[src]
pub struct SearchPath { pub paths: Vec<PathBuf>, }
Fields
paths: Vec<PathBuf>
Search path for import
Methods
impl SearchPath
[src]
fn new(paths: Vec<PathBuf>) -> SearchPath
[src]
fn from_string(s: &str) -> Result<SearchPath, Error>
[src]
Sets the search path used for import
The string must be a colon separated list of paths.
Errors
Error will be returned for parsed paths that do not exist. If the search path string contains a mix of paths that do and do not exist, the paths that do exist will be added to the internal search path.
fn add(&mut self, path: &Path)
[src]
Trait Implementations
impl Clone for SearchPath
[src]
fn clone(&self) -> SearchPath
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SearchPath
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl Default for SearchPath
[src]
fn default() -> SearchPath
[src]
Returns the "default value" for a type. Read more