[−][src]Enum mp4ameta::ContentT
A template representing the different types of content an atom template might have.
Variants
A value containing a list of children atom templates.
RawData(DataT)
A value containing a data template specifying the datatype.
A template representing typed data that is defined by a Table 3-5 Well-known data types code prior to the data parsed.
Empty content.
Implementations
impl ContentT
[src]
pub const fn atoms_t() -> Self
[src]
Creates a new empty content template of type Self::Atoms.
pub fn atom_t(atom: AtomT) -> Self
[src]
Creates a new content template of type Self::Atoms
containing the atom
template.
pub fn data_atom_t() -> Self
[src]
Creates a new content template of type Self::Atoms containing a data atom template.
pub fn iter(&self) -> Iter<'_, AtomT>
[src]
Returns an iterator over the children atoms.
pub fn iter_mut(&mut self) -> IterMut<'_, AtomT>
[src]
Returns a mutable iterator over the children atoms.
pub fn child(&self, ident: Ident) -> Option<&AtomT>
[src]
Returns a reference to the first children atom matching the identifier
, if present.
pub fn first_child(&self) -> Option<&AtomT>
[src]
Return a reference to the first children atom, if present.
pub fn child_mut(&mut self, ident: Ident) -> Option<&mut AtomT>
[src]
Returns a mutable reference to the first children atom matching the identfier
, if present.
pub fn first_child_mut(&mut self) -> Option<&mut AtomT>
[src]
Returns a mutable reference to the first children atom, if present.
pub fn take_child(self, ident: Ident) -> Option<AtomT>
[src]
Consumes self and returns the first children atom matching the identfier
, if present.
pub fn take_first_child(self) -> Option<AtomT>
[src]
Consumes self and returns the first children atom, if present.
pub fn parse(
&self,
reader: &mut impl Read + Seek,
length: usize
) -> Result<Content>
[src]
&self,
reader: &mut impl Read + Seek,
length: usize
) -> Result<Content>
Attempts to parse corresponding content from the reader
.
Trait Implementations
impl Clone for ContentT
[src]
impl Debug for ContentT
[src]
impl Default for ContentT
[src]
impl Eq for ContentT
[src]
impl IntoIterator for ContentT
[src]
type Item = AtomT
The type of the elements being iterated over.
type IntoIter = IntoIter<Self::Item>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<ContentT> for ContentT
[src]
impl StructuralEq for ContentT
[src]
impl StructuralPartialEq for ContentT
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContentT
impl Send for ContentT
impl Sync for ContentT
impl Unpin for ContentT
impl UnwindSafe for ContentT
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,