Skip to main content

AtomData

Enum AtomData 

Source
pub enum AtomData {
Show 20 variants FileType(FileTypeAtom), MovieHeader(MovieHeaderAtom), MediaHeader(MediaHeaderAtom), EditList(EditListAtom), HandlerReference(HandlerReferenceAtom), SoundMediaHeader(SoundMediaHeaderAtom), BaseMediaInfo(BaseMediaInfoAtom), TextMediaInfo(TextMediaInfoAtom), ItemList(ItemListAtom), TrackHeader(TrackHeaderAtom), SampleDescriptionTable(SampleDescriptionTableAtom), TrackReference(TrackReferenceAtom), DataReference(DataReferenceAtom), SampleSize(SampleSizeAtom), ChunkOffset(ChunkOffsetAtom), TimeToSample(TimeToSampleAtom), SampleToChunk(SampleToChunkAtom), ChapterList(ChapterListAtom), Free(FreeAtom), RawData(RawData),
}
Expand description

Represents data contained in an atom (other than children).

Usually only leaf atoms contain data, but some container types such as meta have some extra headers.

Variants§

§

FileType(FileTypeAtom)

§

MovieHeader(MovieHeaderAtom)

§

MediaHeader(MediaHeaderAtom)

§

EditList(EditListAtom)

§

HandlerReference(HandlerReferenceAtom)

§

SoundMediaHeader(SoundMediaHeaderAtom)

§

BaseMediaInfo(BaseMediaInfoAtom)

§

TextMediaInfo(TextMediaInfoAtom)

§

ItemList(ItemListAtom)

§

TrackHeader(TrackHeaderAtom)

§

SampleDescriptionTable(SampleDescriptionTableAtom)

§

TrackReference(TrackReferenceAtom)

§

DataReference(DataReferenceAtom)

§

SampleSize(SampleSizeAtom)

§

ChunkOffset(ChunkOffsetAtom)

§

TimeToSample(TimeToSampleAtom)

§

SampleToChunk(SampleToChunkAtom)

§

ChapterList(ChapterListAtom)

§

Free(FreeAtom)

§

RawData(RawData)

Trait Implementations§

Source§

impl Clone for AtomData

Source§

fn clone(&self) -> AtomData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AtomData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<BaseMediaInfoAtom> for AtomData

Source§

fn from(atom: BaseMediaInfoAtom) -> Self

Converts to this type from the input type.
Source§

impl From<ChapterListAtom> for AtomData

Source§

fn from(atom: ChapterListAtom) -> Self

Converts to this type from the input type.
Source§

impl From<ChunkOffsetAtom> for AtomData

Source§

fn from(atom: ChunkOffsetAtom) -> Self

Converts to this type from the input type.
Source§

impl From<DataReferenceAtom> for AtomData

Source§

fn from(atom: DataReferenceAtom) -> Self

Converts to this type from the input type.
Source§

impl From<EditListAtom> for AtomData

Source§

fn from(atom: EditListAtom) -> Self

Converts to this type from the input type.
Source§

impl From<FileTypeAtom> for AtomData

Source§

fn from(atom: FileTypeAtom) -> Self

Converts to this type from the input type.
Source§

impl From<FreeAtom> for AtomData

Source§

fn from(atom: FreeAtom) -> Self

Converts to this type from the input type.
Source§

impl From<HandlerReferenceAtom> for AtomData

Source§

fn from(atom: HandlerReferenceAtom) -> Self

Converts to this type from the input type.
Source§

impl From<ItemListAtom> for AtomData

Source§

fn from(atom: ItemListAtom) -> Self

Converts to this type from the input type.
Source§

impl From<MediaHeaderAtom> for AtomData

Source§

fn from(atom: MediaHeaderAtom) -> Self

Converts to this type from the input type.
Source§

impl From<MovieHeaderAtom> for AtomData

Source§

fn from(atom: MovieHeaderAtom) -> Self

Converts to this type from the input type.
Source§

impl From<RawData> for AtomData

Source§

fn from(atom: RawData) -> Self

Converts to this type from the input type.
Source§

impl From<SampleDescriptionTableAtom> for AtomData

Source§

fn from(atom: SampleDescriptionTableAtom) -> Self

Converts to this type from the input type.
Source§

impl From<SampleSizeAtom> for AtomData

Source§

fn from(atom: SampleSizeAtom) -> Self

Converts to this type from the input type.
Source§

impl From<SampleToChunkAtom> for AtomData

Source§

fn from(atom: SampleToChunkAtom) -> Self

Converts to this type from the input type.
Source§

impl From<SoundMediaHeaderAtom> for AtomData

Source§

fn from(atom: SoundMediaHeaderAtom) -> Self

Converts to this type from the input type.
Source§

impl From<TextMediaInfoAtom> for AtomData

Source§

fn from(atom: TextMediaInfoAtom) -> Self

Converts to this type from the input type.
Source§

impl From<TimeToSampleAtom> for AtomData

Source§

fn from(atom: TimeToSampleAtom) -> Self

Converts to this type from the input type.
Source§

impl From<TrackHeaderAtom> for AtomData

Source§

fn from(atom: TrackHeaderAtom) -> Self

Converts to this type from the input type.
Source§

impl From<TrackReferenceAtom> for AtomData

Source§

fn from(atom: TrackReferenceAtom) -> Self

Converts to this type from the input type.
Source§

impl SerializeAtom for AtomData

Source§

fn atom_type(&self) -> FourCC

FourCC representing atom type
Source§

fn into_body_bytes(self) -> Vec<u8>

Serialize an atom’s body
Source§

fn into_bytes(self) -> Vec<u8>

Serialize an atom into bytes

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.