[−][src]Struct compress::entropy::ari::bin::SumProxy
A proxy model for the combination of two binary models using equation: (wa * A + wb * B) >> ws
Implementations
impl<'a> SumProxy<'a>
[src]
pub fn new(
wa: Border,
first: &'a Model,
wb: Border,
second: &'a Model,
shift: Border
) -> SumProxy<'a>
[src]
wa: Border,
first: &'a Model,
wb: Border,
second: &'a Model,
shift: Border
) -> SumProxy<'a>
Create a new instance of the binary sum proxy
Trait Implementations
impl<'a> Model<bool> for SumProxy<'a>
[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<'a> RefUnwindSafe for SumProxy<'a>
impl<'a> Send for SumProxy<'a>
impl<'a> Sync for SumProxy<'a>
impl<'a> Unpin for SumProxy<'a>
impl<'a> UnwindSafe for SumProxy<'a>
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, 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>,