[−][src]Enum metaflac::block::Block
The parsed content of a metadata block.
Variants
StreamInfo(StreamInfo)
A value containing a parsed streaminfo block.
Application(Application)
A value containing a parsed application block.
CueSheet(CueSheet)
A value containing a parsed cuesheet block.
Padding(u32)
A value containing the number of bytes of padding.
Picture(Picture)
A value containing a parsed picture block.
SeekTable(SeekTable)
A value containing a parsed seektable block.
VorbisComment(VorbisComment)
A value containing a parsed vorbis comment block.
An value containing the bytes of an unknown block.
Methods
impl Block
[src]
pub fn read_from(reader: &mut dyn Read) -> Result<(bool, u32, Block)>
[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
.
pub fn write_to(&self, is_last: bool, writer: &mut dyn Write) -> Result<u32>
[src]
Attemps to write the block to the writer. Returns the length of the block in bytes.
pub fn block_type(&self) -> BlockType
[src]
Returns the corresponding block type byte for the block.
Trait Implementations
Auto Trait Implementations
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
impl RefUnwindSafe for Block
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,