Trait Capacity

Source
pub trait Capacity {
    // Required method
    fn bitrate(&self) -> usize;
}
Expand description

Trait that should be implemented by the Encoders. Gives amount of bits that are encoded per text fragment. Concrete text fragment (e.g. line) is determined by the Context.

Required Methods§

Source

fn bitrate(&self) -> usize

Returns how many bits are encoded per text fragment.

Implementors§