Enum earth::mimetype::MimeType
[−]
[src]
pub enum MimeType { Text, Html, Xhtml, Other(String), }
Variants
Text
Html
Xhtml
Other(String)
Methods
impl MimeType
[src]
fn from_str(mimetype: &str) -> Option<MimeType>
fn mimetype(&self) -> &str
fn is_text(&self) -> bool
Trait Implementations
impl Clone for MimeType
[src]
fn clone(&self) -> MimeType
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 PartialEq for MimeType
[src]
fn eq(&self, __arg_0: &MimeType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MimeType) -> bool
This method tests for !=
.