Struct mp4ameta::AtomData[][src]

pub struct AtomData {
    pub ident: DataIdent,
    pub data: Data,
}

A struct representing data that is associated with an atom identifier.

Fields

ident: DataIdent

The identifier of the atom.

data: Data

The data contained in the atom.

Implementations

impl AtomData[src]

pub const fn new(ident: DataIdent, data: Data) -> Self[src]

Creates atom data with the identifier and data.

pub fn len(&self) -> u64[src]

Returns the external length of the atom in bytes.

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

Returns whether the inner data atom is empty.

pub fn write_to(&self, writer: &mut impl Write) -> Result<()>[src]

Attempts to write the atom data to the writer.

Trait Implementations

impl Clone for AtomData[src]

impl Debug for AtomData[src]

impl Eq for AtomData[src]

impl PartialEq<AtomData> for AtomData[src]

impl StructuralEq for AtomData[src]

impl StructuralPartialEq for AtomData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.