Skip to main content

PiRead

Trait PiRead 

Source
pub trait PiRead<E: Endianness>: BitRead<E> {
    // Required methods
    fn read_pi(&mut self, k: usize) -> Result<u64, Self::Error>;
    fn read_pi2(&mut self) -> Result<u64, Self::Error>;
}
Expand description

Trait for reading π codes.

This is the trait you should usually pull in scope to read π codes.

Required Methods§

Source

fn read_pi(&mut self, k: usize) -> Result<u64, Self::Error>

Source

fn read_pi2(&mut self) -> Result<u64, Self::Error>

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§