Struct webm_iterable::matroska_spec::SimpleBlock[][src]

pub struct SimpleBlock {
    pub block: Block,
    pub discardable: bool,
    pub keyframe: bool,
}
Expand description

A typed interpretation of the Matroska “SimpleBlock” element.

This struct has fields specific to the SimpleBlock element as defined by the Matroska Spec. This struct implements TryFrom<TagData> and Into<TagData> to simplify coercion to and from regular TagData::Binary values.

Example

use webm_iterable::matroska_spec::SimpleBlock;
 
let binary_tag_data = TagData::Binary(vec![0x81,0x00,0x01,0x9d,0x00,0x00,0x00]);
let mut simple_block: SimpleBlock = binary_tag_data.try_into().unwrap();
simple_block.discardable = true;

Fields

block: Blockdiscardable: boolkeyframe: bool

Trait Implementations

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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.