Enum mp4ameta::Data [−][src]
pub enum Data { Reserved(Vec<u8>), Utf8(String), Utf16(String), Jpeg(Vec<u8>), Png(Vec<u8>), BeSigned(Vec<u8>), Bmp(Vec<u8>), }
Expand description
An enum that holds different types of data defined by Table 3-5 Well-known data types.
Variants
A value containing reserved type data inside a Vec<u8>
.
Utf8(String)
A value containing a String
decoded from, or to be encoded to utf-8.
Utf16(String)
A value containing a String
decoded from, or to be encoded to utf-16.
A value containing jpeg byte data inside a Vec<u8>
.
A value containing png byte data inside a Vec<u8>
.
A value containing big endian signed integer inside a Vec<u8>
.
A value containing bmp byte data inside a Vec<u8>
.
Implementations
Returns true if self
is of type Self::Reserved
or Self::BeSigned
, false otherwise.
Returns true if self
is of type Self::Utf8
or Self::Utf16
, false otherwise.
Returns true if self
is of type Self::Jpeg
, Self::Png
or Self::Bmp
false
otherwise.
Returns true if self
is of type Self::Reserved
false otherwise.
Returns true if self
is of type Self::Utf8
false otherwise.
Returns true if self
is of type Self::Utf16
false otherwise.
Returns true if self
is of type Self::Jpeg
false otherwise.
Returns true if self
is of type Self::BeSigned
false otherwise.
Returns a reference to byte data if self
is of type Self::Reserved
or
Self::BeSigned
.
Returns a mutable reference to byte data if self
is of type Self::Reserved
or
Self::BeSigned
.
Consumes self
and returns byte data if self
is of type Self::Reserved
or
Self::BeSigned
.
Returns a reference to a string if self
is of type Self::Utf8
or Self::Utf16
.
Returns a mutable reference to a string if self
is of type Self::Utf8
or
Self::Utf16
.
Consumes self
and returns a string if self
is of type Self::Utf8
or Self::Utf16
.
Returns a reference to an image if self
is of type Self::Jpeg
, Self::Png
or
Self::Bmp
.
Returns a mutable reference to an image if self
is of type Self::Jpeg
, Self::Png
or Self::Bmp
.
Consumes self
and returns an image if self
is of type Self::Jpeg
, Self::Png
or
Self::Bmp
.
Returns a reference to image data if self
is of type Self::Jpeg
, Self::Png
or
Self::Bmp
.
Returns a mutable reference to image data if self
is of type Self::Jpeg
, Self::Png
or Self::Bmp
.
Consumes self
and returns image data if self
is of type Self::Jpeg
, Self::Png
or Self::Bmp
.
Returns a reference to byte data if self
is of type Self::Reserved
.
Returns a reference to a string if self
is of type Self::Utf8
.
Returns a reference to a string if self
is of type Self::Utf16
.
Returns a reference to image data if self
is of type Self::Jpeg
.
Returns a reference to image data if self
is of type Self::Png
.
Returns a reference to byte data if self
is of type Self::BeSigned
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Data
impl UnwindSafe for Data
Blanket Implementations
Mutably borrows from an owned value. Read more