[−][src]Struct compress::entropy::ari::apm::Bit
Bit probability model
Implementations
impl Bit
[src]
pub fn new_equal() -> Bit
[src]
Return an equal 0-1 probability
pub fn to_flat(&self) -> FlatProbability
[src]
Return flat probability
pub fn to_wide(&self) -> WideProbability
[src]
Return wide probability
pub fn from_flat(fp: FlatProbability) -> Bit
[src]
Construct from flat probability
pub fn from_wide(wp: WideProbability) -> Bit
[src]
Construct from wide probability
pub fn update_zero(&mut self, rate: isize, bias: isize)
[src]
Mutate for better zeroes
pub fn update_one(&mut self, rate: isize, bias: isize)
[src]
Mutate for better ones
pub fn update(&mut self, value: bool, rate: isize, bias: isize)
[src]
Mutate for a given value
Trait Implementations
impl Clone for Bit
[src]
impl Copy for Bit
[src]
impl Model<bool> for Bit
[src]
fn get_range(&self, value: bool) -> (Border, Border)
[src]
fn find_value(&self, offset: Border) -> (bool, Border, Border)
[src]
fn get_denominator(&self) -> Border
[src]
fn encode(&self, value: V, re: &mut RangeEncoder, out: &mut [Symbol]) -> usize
[src]
fn decode(&self, code: Border, re: &mut RangeEncoder) -> (V, usize)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Bit
impl Send for Bit
impl Sync for Bit
impl Unpin for Bit
impl UnwindSafe for Bit
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,