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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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(buf: &mut &[u8]) -> Result<Self>
fn decode_body(buf: &mut &[u8]) -> 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
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 · 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§impl PartialOrd for ReferenceBlock
impl PartialOrd for ReferenceBlock
impl Copy for ReferenceBlock
impl Eq for ReferenceBlock
impl StructuralPartialEq for ReferenceBlock
Auto Trait Implementations§
impl Freeze for ReferenceBlock
impl RefUnwindSafe for ReferenceBlock
impl Send for ReferenceBlock
impl Sync for ReferenceBlock
impl Unpin for ReferenceBlock
impl UnwindSafe for ReferenceBlock
Blanket Implementations§
Source§impl<T> AsyncReadElement for Twhere
T: Element,
impl<T> AsyncReadElement for Twhere
T: Element,
Source§impl<T> AsyncReadFrom for Twhere
T: Element,
impl<T> AsyncReadFrom for Twhere
T: Element,
Source§impl<T> AsyncWriteElement for Twhere
T: Element,
impl<T> AsyncWriteElement for Twhere
T: Element,
Source§fn async_write_element<W: AsyncWrite + Unpin>(
&self,
header: &Header,
w: &mut W,
) -> impl Future<Output = Result<()>>
fn async_write_element<W: AsyncWrite + Unpin>( &self, header: &Header, w: &mut W, ) -> impl Future<Output = Result<()>>
tokio only.Source§impl<T> AsyncWriteTo for Twhere
T: Encode,
impl<T> AsyncWriteTo for Twhere
T: Encode,
Source§async fn async_write_to<W>(&self, w: &mut W) -> Result<(), Error>where
W: AsyncWrite + Unpin,
async fn async_write_to<W>(&self, w: &mut W) -> Result<(), Error>where
W: AsyncWrite + Unpin,
tokio only.