Enum mp4ameta::DataIdent[][src]

pub enum DataIdent {
    Fourcc(Fourcc),
    Freeform {
        mean: String,
        name: String,
    },
}

An identifier for data.

Variants

Fourcc(Fourcc)

A standard identifier containing a 4 byte atom identifier.

Freeform

An identifier of a freeform (----) atom containing owned mean and name strings.

Show fields

Fields of Freeform

mean: String

The mean string, typically in reverse domain notation.

name: String

The name string used to identify the freeform atom.

Implementations

impl DataIdent[src]

pub fn freeform(mean: impl Into<String>, name: impl Into<String>) -> Self[src]

Creates a new identifier of type DataIdent::Freeform containing the owned mean, and name string.

pub const fn fourcc(bytes: [u8; 4]) -> Self[src]

Creates a new identifier of type DataIdent::Fourcc containing an atom identifier with the 4-byte identifier.

Trait Implementations

impl Clone for DataIdent[src]

impl Debug for DataIdent[src]

impl Display for DataIdent[src]

impl Eq for DataIdent[src]

impl From<&'_ FreeformIdent<'_>> for DataIdent[src]

impl From<Fourcc> for DataIdent[src]

impl From<FreeformIdent<'_>> for DataIdent[src]

impl Ident for DataIdent[src]

impl PartialEq<DataIdent> for DataIdent[src]

impl StructuralEq for DataIdent[src]

impl StructuralPartialEq for DataIdent[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> ToString for T where
    T: Display + ?Sized
[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.