[−][src]Enum img_parts::riff::RiffContent
The contents of a RIFF chunk
Variants
Data(Bytes)
Implementations
impl RiffContent
[src]
pub fn len(&self) -> u32
[src]
Get the total size of this RiffContent
once it is encoded.
If this RiffContent
is a List
the size is the sum of:
- The kind (4 bytes) if this
List
has a kind. - The sum of the size of every
subchunk
.
If this RiffContent
is Data
the size is the length of the data.
pub fn list(&self) -> Option<(&Option<[u8; 4]>, &Vec<RiffChunk>)>
[src]
Get kind
and subchunks
of this RiffContent
if it is a List
.
Returns None
if it is Data
.
pub fn data(&self) -> Option<Bytes>
[src]
Get the data
of this RiffContent
if it is Data
.
Returns None
if it is a List
.
pub fn encoder(self) -> ImageEncoder<Self>ⓘNotable traits for ImageEncoder<I>
impl<I: EncodeAt> Iterator for ImageEncoder<I> type Item = Bytes;
[src]
Notable traits for ImageEncoder<I>
impl<I: EncodeAt> Iterator for ImageEncoder<I> type Item = Bytes;
Returns an encoder for this RiffContent
Trait Implementations
impl Clone for RiffContent
[src]
fn clone(&self) -> RiffContent
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RiffContent
[src]
impl PartialEq<RiffContent> for RiffContent
[src]
fn eq(&self, other: &RiffContent) -> bool
[src]
fn ne(&self, other: &RiffContent) -> bool
[src]
impl StructuralPartialEq for RiffContent
[src]
Auto Trait Implementations
impl RefUnwindSafe for RiffContent
impl Send for RiffContent
impl Sync for RiffContent
impl Unpin for RiffContent
impl UnwindSafe for RiffContent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,