Enum metaflac::block::Block [] [src]

pub enum Block {
    StreamInfo(StreamInfo),
    Application(Application),
    CueSheet(CueSheet),
    Padding(u32),
    Picture(Picture),
    SeekTable(SeekTable),
    VorbisComment(VorbisComment),
    Unknown((u8, Vec<u8>)),
}

The parsed content of a metadata block.

Variants

A value containing a parsed streaminfo block.

A value containing a parsed application block.

A value containing a parsed cuesheet block.

A value containing the number of bytes of padding.

A value containing a parsed picture block.

A value containing a parsed seektable block.

A value containing a parsed vorbis comment block.

An value containing the bytes of an unknown block.

Methods

impl Block
[src]

[src]

Attempts to read a block from the reader. Returns a tuple containing a boolean indicating if the block was the last block, the length of the block in bytes, and the new Block.

[src]

Attemps to write the block to the writer. Returns the length of the block in bytes.

[src]

Returns the corresponding block type byte for the block.

Trait Implementations

impl Clone for Block
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Block
[src]

[src]

Formats the value using the given formatter.