Trait glory_cli::ext::PathBufExt
source · pub trait PathBufExt: PathExt {
// Required methods
fn without_last(self) -> Self;
fn test_string(&self) -> String;
fn starts_with_any(&self, of: &[Utf8PathBuf]) -> bool;
fn is_ext_any(&self, of: &[&str]) -> bool;
fn resolve_home_dir(self) -> Result<Utf8PathBuf>;
fn clean_windows_path(&mut self);
}Required Methods§
sourcefn without_last(self) -> Self
fn without_last(self) -> Self
drops the last path component
sourcefn test_string(&self) -> String
fn test_string(&self) -> String
returns a platform independent string suitable for testing
fn starts_with_any(&self, of: &[Utf8PathBuf]) -> bool
fn is_ext_any(&self, of: &[&str]) -> bool
fn resolve_home_dir(self) -> Result<Utf8PathBuf>
sourcefn clean_windows_path(&mut self)
fn clean_windows_path(&mut self)
cleaning the unc (illegible \?) start of windows paths. See dunce crate.
Object Safety§
This trait is not object safe.