FormatInfoOptionExt

Trait FormatInfoOptionExt 

Source
pub trait FormatInfoOptionExt {
    // Required method
    fn get_primary_extension(&self) -> Option<&'static str>;
}
Expand description

Extension trait allowing .get_primary_extension() on Option<&'static FormatInfo>.

Required Methods§

Source

fn get_primary_extension(&self) -> Option<&'static str>

Returns the primary file extension if format info is present.

Implementations on Foreign Types§

Source§

impl FormatInfoOptionExt for Option<&'static FormatInfo>

Implementors§