Struct conduit_mime_types::Types [] [src]

pub struct Types {
    // some fields omitted
}

Methods

impl Types
[src]

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

impl PartialEq for Types
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Eq for Types
[src]

impl Clone for Types
[src]

fn clone(&self) -> Types

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Types
[src]

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

Formats the value using the given formatter.