Struct libflo_std::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<PathResolver, Error>
root_path: PathBuf,
exe_path: Option<PathBuf>,
search_paths: Option<Vec<PathBuf>>
) -> Result<PathResolver, Error>
fn add_module_path(
&mut self,
path: PathBuf,
module_id: usize,
module_name: String
) -> Result<(), Error>
&mut self,
path: PathBuf,
module_id: usize,
module_name: String
) -> Result<(), Error>
fn create_file_path_from_temp_directory_path<TPath>(
directory_path: PathBuf,
file_path: TPath
) -> Result<PathBuf, Error> where
TPath: AsRef<Path>,
directory_path: PathBuf,
file_path: TPath
) -> Result<PathBuf, Error> where
TPath: AsRef<Path>,
fn find_path<TPath>(&self, path: TPath) -> Result<PathBuf, Error> where
TPath: AsRef<Path>,
TPath: AsRef<Path>,
fn find_module_path(&self, module_id: usize) -> Result<&Path, Error>
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, Error> where
TPath: AsRef<Path>,
&self,
path: TPath,
module_id: usize
) -> Result<PathBuf, Error> where
TPath: AsRef<Path>,
fn try_find_module_file_path<TPath>(
&self,
path: TPath,
module_id: usize
) -> Result<Option<PathBuf>, Error> where
TPath: AsRef<Path>,
&self,
path: TPath,
module_id: usize
) -> Result<Option<PathBuf>, Error> where
TPath: AsRef<Path>,
fn has_submodule(
&self,
module_id: usize,
submodule_id: usize
) -> Result<bool, Error>
&self,
module_id: usize,
submodule_id: usize
) -> Result<bool, Error>
fn find_submodule_path(
&self,
module_id: usize,
submodule_id: usize
) -> Result<PathBuf, Error>
&self,
module_id: usize,
submodule_id: usize
) -> Result<PathBuf, Error>
fn find_submodule_file_path<TPath>(
&self,
path: TPath,
module_id: usize,
submodule_id: usize
) -> Result<PathBuf, Error> where
TPath: AsRef<Path>,
&self,
path: TPath,
module_id: usize,
submodule_id: usize
) -> Result<PathBuf, Error> where
TPath: AsRef<Path>,
fn try_find_submodule_file_path<TPath>(
&self,
path: TPath,
module_id: usize,
submodule_id: usize
) -> Result<Option<PathBuf>, Error> where
TPath: AsRef<Path>,
&self,
path: TPath,
module_id: usize,
submodule_id: usize
) -> Result<Option<PathBuf>, Error> where
TPath: AsRef<Path>,