MetadataBlock

Trait MetadataBlock 

Source
pub trait MetadataBlock:
    ToBitStream<Error: Into<Error>>
    + Into<Block>
    + TryFrom<Block>
    + Clone {
    const TYPE: BlockType;
    const MULTIPLE: bool;

    // Provided methods
    fn bytes(&self) -> Option<BlockSize> { ... }
    fn total_size(&self) -> Option<BlockSize> { ... }
}
Expand description

A type of FLAC metadata block

Required Associated Constants§

Source

const TYPE: BlockType

The metadata block’s type

Source

const MULTIPLE: bool

Whether the block can occur multiple times in a file

Provided Methods§

Source

fn bytes(&self) -> Option<BlockSize>

Size of block, in bytes, not including header

Source

fn total_size(&self) -> Option<BlockSize>

Size of block, in bytes, including block header

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl MetadataBlock for Cuesheet

Source§

const TYPE: BlockType = BlockType::Cuesheet

Source§

const MULTIPLE: bool = true

Source§

impl MetadataBlock for Application

Source§

const TYPE: BlockType = BlockType::Application

Source§

const MULTIPLE: bool = true

Source§

impl MetadataBlock for Padding

Source§

const TYPE: BlockType = BlockType::Padding

Source§

const MULTIPLE: bool = true

Source§

impl MetadataBlock for Picture

Source§

const TYPE: BlockType = BlockType::Picture

Source§

const MULTIPLE: bool = true

Source§

impl MetadataBlock for SeekTable

Source§

const TYPE: BlockType = BlockType::SeekTable

Source§

const MULTIPLE: bool = false

Source§

impl MetadataBlock for Streaminfo

Source§

const TYPE: BlockType = BlockType::Streaminfo

Source§

const MULTIPLE: bool = false

Source§

impl MetadataBlock for VorbisComment

Source§

const TYPE: BlockType = BlockType::VorbisComment

Source§

const MULTIPLE: bool = false