Struct conduit_mime_types::Types [] [src]

pub struct Types {
    // some fields omitted
}

Methods

impl Types

fn new() -> Result<Types, ()>

fn get_extension<'a>(&'a self, name: &str) -> Option<&'a [String]>

fn get_mime_type<'a>(&'a self, ext: &str) -> Option<&'a str>

fn mime_for_path<'a>(&'a self, path: &Path) -> &'a str

Trait Implementations

Derived Implementations

impl PartialEq for Types

fn eq(&self, __arg_0: &Types) -> bool

fn ne(&self, __arg_0: &Types) -> bool

impl Eq for Types

impl Clone for Types

fn clone(&self) -> Types

fn clone_from(&mut self, source: &Self)

impl Debug for Types

fn fmt(&self, __arg_0: &mut Formatter) -> Result