Skip to main content

FileExtension

Trait FileExtension 

Source
pub trait FileExtension {
    // Required method
    fn extension(&self) -> String;
}
Expand description

Convert an extension filter value into a normalized file extension.

Required Methods§

Source

fn extension(&self) -> String

Return the file extension represented by this value.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§