pub trait FileNameExt: Sized {
// Required methods
fn parse_file_name(file_name: &str) -> Option<Self>;
fn build_file_name(&self) -> String;
// Provided method
fn build_file_path<P: AsRef<Path>>(&self, dir: P) -> PathBuf { ... }
}
Expand description
FileNameExt
offers file name formatting extensions to FileId
.
Required Methods§
fn parse_file_name(file_name: &str) -> Option<Self>
fn build_file_name(&self) -> String
Provided Methods§
fn build_file_path<P: AsRef<Path>>(&self, dir: P) -> PathBuf
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.