Struct adder_codec_core::codec::compressed::fenwick::simple::FenwickModel
source · pub struct FenwickModel { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for FenwickModel
impl Clone for FenwickModel
source§fn clone(&self) -> FenwickModel
fn clone(&self) -> FenwickModel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FenwickModel
impl Debug for FenwickModel
source§impl Model for FenwickModel
impl Model for FenwickModel
§type ValueError = ValueError
type ValueError = ValueError
Invalid symbol error
source§fn probability(
&self,
symbol: Option<&Self::Symbol>
) -> Result<Range<Self::B>, Self::ValueError>
fn probability( &self, symbol: Option<&Self::Symbol> ) -> Result<Range<Self::B>, Self::ValueError>
Given a symbol, return an interval representing the probability of that
symbol occurring. Read more
source§fn max_denominator(&self) -> Self::B
fn max_denominator(&self) -> Self::B
The maximum denominator used for probability ranges. See
[
Model::probability
]. Read moresource§fn symbol(&self, value: Self::B) -> Option<Self::Symbol>
fn symbol(&self, value: Self::B) -> Option<Self::Symbol>
Given a value, return the symbol whose probability range it falls in. Read more
source§fn denominator(&self) -> Self::B
fn denominator(&self) -> Self::B
The denominator for probability ranges. See [
Model::probability
]. Read moreAuto Trait Implementations§
impl RefUnwindSafe for FenwickModel
impl Send for FenwickModel
impl Sync for FenwickModel
impl Unpin for FenwickModel
impl UnwindSafe for FenwickModel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more