Enum wavv::Chunk[][src]

pub enum Chunk {
    FMT(Header),
    DATA(Samples),
    LIST(ChunkId, Vec<Chunk>),
    INFO(Vec<(ChunkId, String)>),
    Unknown(ChunkId, Vec<u8>),
}
Expand description

Enum describing various .wav file data relationships

Variants

FMT

ChunkId::FMT containing header data

Tuple Fields of FMT

0: Header
DATA

ChunkId::DATA containing sample data

Tuple Fields of DATA

0: Samples
LIST

ChunkId::LIST containing other chunks

Tuple Fields of LIST

0: ChunkId1: Vec<Chunk>
INFO

ChunkId::INFO containing pairs of ChunkId combined with string data

Tuple Fields of INFO

0: Vec<(ChunkId, String)>
Unknown

Unkown or (most likely) unimplemented ChunkId, containing raw bytes

Tuple Fields of Unknown

0: ChunkId1: Vec<u8>

Implementations

attempt to parse bytes into valid Chunk based on ChunkId and Header

attempt to parse bytes into valid Chunk based on ChunkId

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.