pub struct ReferenceBlock(pub i64);Expand description
A timestamp value, relative to the timestamp of the Block in this BlockGroup, expressed in Track Ticks; see (#timestamp-ticks).
This is used to reference other frames necessary to decode this frame.
The relative value SHOULD correspond to a valid Block that this Block depends on.
Historically, Matroska Writers didn’t write the actual Block(s) that this Block depends on, but they did write some Block(s) in the past.
The value “0” MAY also be used to signify that this Block cannot be decoded on its own, but the necessary reference Block(s) is unknown. In this case, other ReferenceBlock elements MUST NOT be found in the same BlockGroup. If the BlockGroup doesn’t have a ReferenceBlock element, then the Block it contains can be decoded without using any other Block data.
Tuple Fields§
§0: i64Trait Implementations§
Source§impl Clone for ReferenceBlock
impl Clone for ReferenceBlock
Source§fn clone(&self) -> ReferenceBlock
fn clone(&self) -> ReferenceBlock
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ReferenceBlock
Source§impl Debug for ReferenceBlock
impl Debug for ReferenceBlock
Source§impl Default for ReferenceBlock
impl Default for ReferenceBlock
Source§impl Deref for ReferenceBlock
impl Deref for ReferenceBlock
Source§impl Element for ReferenceBlock
impl Element for ReferenceBlock
Source§fn decode_body<B: Buf>(buf: &mut B) -> Result<Self>
fn decode_body<B: Buf>(buf: &mut B) -> Result<Self>
Source§fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
Source§const HAS_DEFAULT_VALUE: bool = false
const HAS_DEFAULT_VALUE: bool = false
impl Eq for ReferenceBlock
Source§impl Hash for ReferenceBlock
impl Hash for ReferenceBlock
Source§impl Ord for ReferenceBlock
impl Ord for ReferenceBlock
Source§fn cmp(&self, other: &ReferenceBlock) -> Ordering
fn cmp(&self, other: &ReferenceBlock) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ReferenceBlock
impl PartialEq for ReferenceBlock
Source§fn eq(&self, other: &ReferenceBlock) -> bool
fn eq(&self, other: &ReferenceBlock) -> bool
self and other values to be equal, and is used by ==.