Skip to main content

ReaderExt

Trait ReaderExt 

Source
pub trait ReaderExt {
    // Required methods
    fn read_n(&self, n: usize) -> &[u8] ;
    fn read_const<const N: usize>(&self) -> [u8; N];
    fn skip(self, bytes: usize) -> Self;
}

Required Methods§

Source

fn read_n(&self, n: usize) -> &[u8]

Source

fn read_const<const N: usize>(&self) -> [u8; N]

Source

fn skip(self, bytes: usize) -> Self

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.

Implementations on Foreign Types§

Source§

impl ReaderExt for &[u8]

Source§

fn read_n(&self, n: usize) -> &[u8]

Source§

fn read_const<const N: usize>(&self) -> [u8; N]

Source§

fn skip(self, bytes: usize) -> Self

Implementors§