pub enum Block {
Streaminfo(Streaminfo),
Padding(Padding),
Application(Application),
SeekTable(SeekTable),
VorbisComment(VorbisComment),
Cuesheet(Cuesheet),
Picture(Picture),
}Expand description
Any possible FLAC metadata block
Each block consists of a BlockHeader followed by the block’s contents.
┌──────────┬────────┬┄┄┄┄┄┄┄┄┬┄┄┄┬────────┬┄┄┄┄┄┄┄┄┬┄┄┄╮
│ FLAC Tag │ Block₀ │ Block₁ ┆ … ┆ Frame₀ │ Frame₁ ┆ … ┆ FLAC File
└──────────┼────────┼┄┄┄┄┄┄┄┄┴┄┄┄┴────────┴┄┄┄┄┄┄┄┄┴┄┄┄╯
╭──────────╯ ╰────────────────────────╮
├──────────────┬─────────────────────────────┤
│ Block Header │ Metadata Block Data │ Metadata Block
└──────────────┴─────────────────────────────┘Variants§
Streaminfo(Streaminfo)
The STREAMINFO block
Padding(Padding)
The PADDING block
Application(Application)
The APPLICATION block
SeekTable(SeekTable)
The SEEKTABLE block
VorbisComment(VorbisComment)
The VORBIS_COMMENT block
Cuesheet(Cuesheet)
The CUESHEET block
Picture(Picture)
The PICTURE block
Implementations§
Trait Implementations§
Source§impl AsBlockRef for Block
impl AsBlockRef for Block
Source§fn as_block_ref(&self) -> BlockRef<'_>
fn as_block_ref(&self) -> BlockRef<'_>
Returns fresh reference to ourself.
Source§impl From<Application> for Block
impl From<Application> for Block
Source§fn from(b: Application) -> Self
fn from(b: Application) -> Self
Converts to this type from the input type.
Source§impl From<Streaminfo> for Block
impl From<Streaminfo> for Block
Source§fn from(b: Streaminfo) -> Self
fn from(b: Streaminfo) -> Self
Converts to this type from the input type.
Source§impl From<VorbisComment> for Block
impl From<VorbisComment> for Block
Source§fn from(b: VorbisComment) -> Self
fn from(b: VorbisComment) -> Self
Converts to this type from the input type.
Source§impl FromBitStreamWith<'_> for Block
impl FromBitStreamWith<'_> for Block
Source§impl ToBitStreamUsing for Block
impl ToBitStreamUsing for Block
Source§impl TryFrom<Block> for Application
impl TryFrom<Block> for Application
Source§impl TryFrom<Block> for Streaminfo
impl TryFrom<Block> for Streaminfo
Source§impl TryFrom<Block> for VorbisComment
impl TryFrom<Block> for VorbisComment
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more