Enum rexiv2::MediaType
[−]
[src]
pub enum MediaType { Bmp, CanonCr2, CanonCrw, Eps, FujiRaf, Gif, Jp2, Jpeg, MinoltaMrw, OlympusOrf, Png, Psd, PanasonicRw2, Tga, Tiff, Other(String), }
The media types that an image might have.
This can be easily converted to/created from an Internet Media Type string with the ::from()
method, thanks to the std::convert::From
trait.
Variants
Bmp
image/x-ms-bmp
CanonCr2
image/x-canon-cr2
CanonCrw
image/x-canon-crw
Eps
application/postscript
FujiRaf
image/x-fuji-raf
Gif
image/gif
Jp2
image/jp2
Jpeg
image/jpeg
MinoltaMrw
image/x-minolta-mrw
OlympusOrf
image/x-olympus-orf
Png
image/png
Psd
image/x-photoshop
PanasonicRw2
image/x-panasonic-rw2
Tga
image/targa
Tiff
image/tiff
Other(String)
Some other, unrecognized, media type, contained within.
Trait Implementations
impl Clone for MediaType
[src]
fn clone(&self) -> MediaType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for MediaType
[src]
impl Eq for MediaType
[src]
impl PartialEq for MediaType
[src]
fn eq(&self, __arg_0: &MediaType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MediaType) -> bool
[src]
This method tests for !=
.
impl Hash for MediaType
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more