pub trait Sink {
// Required methods
fn bit(&mut self, lane: usize, bit: bool, p1: u32) -> bool;
fn raw(&mut self, lane: usize, v: u32, n: u32) -> u32;
// Provided method
fn note(&mut self, _idx: usize, _bit: bool) { ... }
}Expand description
A symbol sink/source for one brick: binary decisions at a probability, and raw bit chunks, per lane.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".