Struct libflo_module::PathResolver
[−]
[src]
pub struct PathResolver { /* fields omitted */ }
Methods
impl PathResolver
[src]
fn new(
root_path: PathBuf,
exe_path: Option<PathBuf>,
search_paths: Option<Vec<PathBuf>>
) -> Result<Self>
root_path: PathBuf,
exe_path: Option<PathBuf>,
search_paths: Option<Vec<PathBuf>>
) -> Result<Self>
fn add_module_path(
&mut self,
path: PathBuf,
module_id: usize,
module_name: String
) -> Result<()>
&mut self,
path: PathBuf,
module_id: usize,
module_name: String
) -> Result<()>
fn create_file_path_from_temp_directory_path<TPath>(
directory_path: PathBuf,
file_path: TPath
) -> Result<PathBuf> where
TPath: AsRef<Path>,
directory_path: PathBuf,
file_path: TPath
) -> Result<PathBuf> where
TPath: AsRef<Path>,
fn find_path<TPath>(&self, path: TPath) -> Result<PathBuf> where
TPath: AsRef<Path>,
TPath: AsRef<Path>,
fn find_module_path(&self, module_id: usize) -> Result<&Path>
fn try_find_module_path(&self, module_id: usize) -> Option<&PathBuf>
fn find_module_file_path<TPath>(
&self,
path: TPath,
module_id: usize
) -> Result<PathBuf> where
TPath: AsRef<Path>,
&self,
path: TPath,
module_id: usize
) -> Result<PathBuf> where
TPath: AsRef<Path>,
fn try_find_module_file_path<TPath>(
&self,
path: TPath,
module_id: usize
) -> Result<Option<PathBuf>> where
TPath: AsRef<Path>,
&self,
path: TPath,
module_id: usize
) -> Result<Option<PathBuf>> where
TPath: AsRef<Path>,
fn has_submodule(&self, module_id: usize, submodule_id: usize) -> Result<bool>
fn find_submodule_path(
&self,
module_id: usize,
submodule_id: usize
) -> Result<PathBuf>
&self,
module_id: usize,
submodule_id: usize
) -> Result<PathBuf>
fn find_submodule_file_path<TPath>(
&self,
path: TPath,
module_id: usize,
submodule_id: usize
) -> Result<PathBuf> where
TPath: AsRef<Path>,
&self,
path: TPath,
module_id: usize,
submodule_id: usize
) -> Result<PathBuf> where
TPath: AsRef<Path>,
fn try_find_submodule_file_path<TPath>(
&self,
path: TPath,
module_id: usize,
submodule_id: usize
) -> Result<Option<PathBuf>> where
TPath: AsRef<Path>,
&self,
path: TPath,
module_id: usize,
submodule_id: usize
) -> Result<Option<PathBuf>> where
TPath: AsRef<Path>,
Trait Implementations
impl Clone for PathResolver
[src]
fn clone(&self) -> PathResolver
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more