FileExtension

Trait FileExtension 

Source
pub trait FileExtension {
    // Required method
    fn get_self(&self) -> &File;

    // Provided method
    fn empty() -> File { ... }
}

Required Methods§

Source

fn get_self(&self) -> &File

Provided Methods§

Source

fn empty() -> File

Returns the string value of the Fileession if it is a literal string.

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.

Implementations on Foreign Types§

Source§

impl FileExtension for File

Source§

fn get_self(&self) -> &File

Implementors§