Trait XrBlockParserExt

Source
pub trait XrBlockParserExt<'a>: XrBlockParser<'a> {
    // Provided methods
    fn block_type(&self) -> u8 { ... }
    fn type_specific_byte(&self) -> u8 { ... }
    fn length(&self) -> usize { ... }
}
Expand description

Extension trait providing helpers for parsing a XrBlock.

Provided Methods§

Source

fn block_type(&self) -> u8

The indicator for the particular XR block being parsed

Source

fn type_specific_byte(&self) -> u8

The type specific value in the XR block header

Source

fn length(&self) -> usize

The length (in bytes) of the XR block

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, T: XrBlockParser<'a>> XrBlockParserExt<'a> for T