Trait XrBlockBuilderExt

Source
pub trait XrBlockBuilderExt<'a>: XrBlockBuilder<'a> {
    // Provided method
    fn write_header_unchecked(
        &self,
        buf: &mut [u8],
        block_type: u8,
        block_word_len: u16,
    ) -> usize { ... }
}
Expand description

Extension trait providing helpers for writing a XrBlock to a sequence of bytes.

Provided Methods§

Source

fn write_header_unchecked( &self, buf: &mut [u8], block_type: u8, block_word_len: u16, ) -> usize

Write the 4 byte XrBlock header into buf using the provided values.

Implementors§

Source§

impl<'a, T: XrBlockBuilder<'a>> XrBlockBuilderExt<'a> for T