[][src]Struct mp4ameta::atom::FILETYPE_ATOM_T

pub struct FILETYPE_ATOM_T { /* fields omitted */ }

Lazily initialized static reference to a ftyp atom template.

Methods from Deref<Target = AtomT>

pub fn child(&self, ident: Ident) -> Option<&Self>[src]

Returns a reference to the first children atom template matching the identifier, if present.

pub fn first_child(&self) -> Option<&Self>[src]

Returns a reference to the first children atom template, if present.

pub fn parse_next(&self, reader: &mut impl Read + Seek) -> Result<Atom>[src]

Attempts to parse an atom, that matches the template, from the reader. This should only be used if the atom has to be in this exact position, if the parsed and expected identifiers don't match this will return an error.

pub fn parse(&self, reader: &mut impl Read + Seek) -> Result<Atom>[src]

Attempts to parse an atom, that matches the template, from the reader.

pub fn parse_content(
    &self,
    reader: &mut impl Read + Seek,
    length: usize
) -> Result<Content>
[src]

Attempts to parse the atom template's content from the reader.

Trait Implementations

impl Deref for FILETYPE_ATOM_T[src]

type Target = AtomT

The resulting type after dereferencing.

impl LazyStatic for FILETYPE_ATOM_T[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, 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.