[][src]Enum riffu::eager::riff::ChunkRamContent

pub enum ChunkRamContent<'a> {
    RawData(FourCC&'a [u8]),
    Children(FourCCFourCCVec<ChunkRamContent<'a>>),
    ChildrenNoType(FourCCVec<ChunkRamContent<'a>>),
}

Represents the data that a ChunkRam contains. There are 3 possible values that any ChunkRam may hold.

Variants

RawData(FourCC&'a [u8])

Represents a ChunkRam that contains raw data as &[u8].

Children(FourCCFourCCVec<ChunkRamContent<'a>>)

Represents a ChunkRam where the payload contains the chunk's identifier, the chunk's type and a list of ChunkRamContents.

ChildrenNoType(FourCCVec<ChunkRamContent<'a>>)

Represents a ChunkRam where the payload only contain a list of ChunkRamContents.

Trait Implementations

impl<'a> Debug for ChunkRamContent<'a>[src]

impl<'a> TryFrom<ChunkRam<'a>> for ChunkRamContent<'a>[src]

Since ChunkRam is an opaque type. The only way to obtain the ChunkRam's contents is through this trait.

type Error = RiffError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for ChunkRamContent<'a>

impl<'a> Send for ChunkRamContent<'a>

impl<'a> Sync for ChunkRamContent<'a>

impl<'a> Unpin for ChunkRamContent<'a>

impl<'a> UnwindSafe for ChunkRamContent<'a>

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.