[][src]Trait ptero::encoder::Capacity

pub trait Capacity {
    pub fn bitrate(&self) -> usize;
}

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

pub fn bitrate(&self) -> usize[src]

Returns how many bits are encoded per text fragment.

Loading content...

Implementors

impl Capacity for ELUVMethod[src]

impl Capacity for ExtendedLineMethod[src]

impl Capacity for LineExtendMethod[src]

impl Capacity for RandomWhitespaceMethod[src]

impl Capacity for TrailingUnicodeMethod[src]

impl Capacity for TrailingWhitespaceMethod[src]

Loading content...