pub struct Metadata { /* private fields */ }Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn into_atoms(self) -> Vec<Atom>
pub fn into_atoms(self) -> Vec<Atom>
Transforms into (reader, current_offset, atoms)
Sourcepub fn atoms_iter(&self) -> impl Iterator<Item = &Atom>
pub fn atoms_iter(&self) -> impl Iterator<Item = &Atom>
Iterates over the metadata atoms
Sourcepub fn atoms_iter_mut(&mut self) -> impl Iterator<Item = &mut Atom>
pub fn atoms_iter_mut(&mut self) -> impl Iterator<Item = &mut Atom>
Mutably iterates over the metadata atoms
Sourcepub fn atoms_flat_retain_mut<P>(&mut self, pred: P)
pub fn atoms_flat_retain_mut<P>(&mut self, pred: P)
Retains only the metadata atoms that satisfy the predicate (applies to top level and nested atoms)
pub fn ftyp(&mut self) -> FtypAtomRef<'_>
pub fn ftyp_mut(&mut self) -> FtypAtomRefMut<'_>
pub fn moov(&self) -> MoovAtomRef<'_>
pub fn moov_mut(&mut self) -> MoovAtomRefMut<'_>
Sourcepub fn metadata_size(&self) -> usize
pub fn metadata_size(&self) -> usize
Returns the sum of all metadata atom sizes in bytes
Sourcepub fn update_chunk_offsets(
&mut self,
) -> Result<BuildMetadata, UpdateChunkOffsetError>
pub fn update_chunk_offsets( &mut self, ) -> Result<BuildMetadata, UpdateChunkOffsetError>
Updates chunk offsets for each track
Call this before writing metadata to disk to avoid corruption
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more