[][src]Trait bookbinder_common::MimeTypeHelper

pub trait MimeTypeHelper {
    pub fn is_jpg(&self) -> bool;
pub fn is_png(&self) -> bool;
pub fn is_svg(&self) -> bool;
pub fn is_css(&self) -> bool;
pub fn is_opentype(&self) -> bool;
pub fn is_woff(&self) -> bool;
pub fn is_xhtml(&self) -> bool;
pub fn is_markdown(&self) -> bool;
pub fn is_tex_like(&self) -> bool;
pub fn is_eps(&self) -> bool;
pub fn is_gif(&self) -> bool;
pub fn is_pdf(&self) -> bool;
pub fn is_suitable_cover_background(&self) -> bool;
pub fn is_epub_supported_image(&self) -> bool;
pub fn is_latex_supported_image(&self) -> bool;
pub fn is_epub_supported_resource(&self) -> bool;
pub fn is_valid_logo_image(&self) -> bool; }

Various helpful functions for analysing filepaths

Required methods

pub fn is_jpg(&self) -> bool[src]

is this likely to be a jpg file?

pub fn is_png(&self) -> bool[src]

is this likely to be a png file?

pub fn is_svg(&self) -> bool[src]

is this likely to be a svg file?

pub fn is_css(&self) -> bool[src]

Is this likely to represent a css file?

pub fn is_opentype(&self) -> bool[src]

Is this likely to represent an opentype font?

pub fn is_woff(&self) -> bool[src]

Is this likely to represent a woff font?

pub fn is_xhtml(&self) -> bool[src]

Is this likely to represent xhtml?

pub fn is_markdown(&self) -> bool[src]

Is this likely to represent markdown?

pub fn is_tex_like(&self) -> bool[src]

Is this likely to represent a tex or txt file?

pub fn is_eps(&self) -> bool[src]

Is this likely to represent an eps file?

pub fn is_gif(&self) -> bool[src]

Is this likely to represent a gif?

pub fn is_pdf(&self) -> bool[src]

Is this likely to represent a pdf?

pub fn is_suitable_cover_background(&self) -> bool[src]

Is this able to be incorporated as the background of a cover image? i.e. is png, jpg, or svg

pub fn is_epub_supported_image(&self) -> bool[src]

Is this an image which epub supports? These are png, jpg, gif and svg

pub fn is_latex_supported_image(&self) -> bool[src]

Is this likely to represent an image latex can render? These are pdf, png, jpg and eps

pub fn is_epub_supported_resource(&self) -> bool[src]

Is this likely to represent a file which can be included in an epub? These are supported image formats, xhtml+xml, opentype, woff or css

pub fn is_valid_logo_image(&self) -> bool[src]

can this be used as a publisher logo on the titlepage in both an epub and pdf?

Loading content...

Implementors

impl MimeTypeHelper for MimeType[src]

impl<T> MimeTypeHelper for T where
    T: GuessMimeType
[src]

Loading content...