Skip to main content

PiWrite

Trait PiWrite 

Source
pub trait PiWrite<E: Endianness>: BitWrite<E> {
    // Required methods
    fn write_pi(&mut self, n: u64, k: usize) -> Result<usize, Self::Error>;
    fn write_pi2(&mut self, n: u64) -> Result<usize, Self::Error>;
}
Expand description

Trait for writing π codes.

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

Required Methods§

Source

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

Source

fn write_pi2(&mut self, n: u64) -> Result<usize, 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§