pub trait PathHelpers {
// Required methods
fn is_relative_path(path: &str) -> bool;
fn find_src_folder() -> Option<PathBuf>;
fn from_rel_file_path(rel_path: &str) -> Result<Config, LocCounterError>;
fn from_abs_file_path(
config_path: &str,
project_path: String,
) -> Result<Config, LocCounterError>;
}Required Methods§
fn is_relative_path(path: &str) -> bool
fn find_src_folder() -> Option<PathBuf>
fn from_rel_file_path(rel_path: &str) -> Result<Config, LocCounterError>
fn from_abs_file_path( config_path: &str, project_path: String, ) -> Result<Config, LocCounterError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl PathHelpers for Config
Available on crate features
toml-config or json-config or yaml-config or xml-config or newline-config only.