[][src]Enum bookbinder_common::MimeType

pub enum MimeType {
    Jpeg,
    Css,
    Epub,
    Png,
    Svg,
    Gif,
    Pdf,
    PlainText,
    Markdown,
    Eps,
    Xhtml,
    Woff,
    OpenType,
    Latex,
}

A mimetype relevant to book production

Variants

Jpeg

A jpeg file

Css

A css file

Epub

An epub file

Png

A png file

Svg

A svg file

Gif

A gif file

Pdf

A pdf file

PlainText

A txt file

Markdown

A markdown file

Eps

An eps file

Xhtml

An xhtml file

Woff

A woff font file

OpenType

An opentype font file

Latex

A latex file

Implementations

impl MimeType[src]

pub fn new_from_extension(ext: &str) -> Option<Self>[src]

Guess a mimetype from an extension

pub const fn to_str(&self) -> &'static str[src]

return the canonical str representation of this mimetype

Trait Implementations

impl Clone for MimeType[src]

impl Copy for MimeType[src]

impl Debug for MimeType[src]

impl Eq for MimeType[src]

impl Hash for MimeType[src]

impl MimeTypeHelper for MimeType[src]

impl PartialEq<MimeType> for MimeType[src]

impl StructuralEq for MimeType[src]

impl StructuralPartialEq for MimeType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> HashToString for T where
    T: Hash
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> TempFilePath for T where
    T: HashToString
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,