Skip to main content

CaminoUtilModule

Trait CaminoUtilModule 

Source
pub trait CaminoUtilModule {
    // Required method
    fn get_file_main_name(&self) -> Option<CompactString>;
}
Expand description

Extension trait for Camino paths to extract the main module file name.

Required Methods§

Source

fn get_file_main_name(&self) -> Option<CompactString>

Gets the base compact string name without extension and specific postfixes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CaminoUtilModule for Path

Source§

impl CaminoUtilModule for PathBuf

Source§

impl CaminoUtilModule for Utf8Path

Implementors§