pub struct ProbTableEntry {
pub cum_prob_low: u32,
pub width_low: u32,
pub width_high: u32,
}Expand description
Pre-computed lookup table entry for one probability value.
Fields§
§cum_prob_low: u32Cumulative probability of the low partition, in [0, TABLE_SIZE).
width_low: u32Width of the low partition (probability * TABLE_SIZE).
width_high: u32Width of the high partition.
Trait Implementations§
Source§impl Clone for ProbTableEntry
impl Clone for ProbTableEntry
Source§fn clone(&self) -> ProbTableEntry
fn clone(&self) -> ProbTableEntry
Returns a duplicate 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 ProbTableEntry
impl Debug for ProbTableEntry
Source§impl Default for ProbTableEntry
impl Default for ProbTableEntry
Source§fn default() -> ProbTableEntry
fn default() -> ProbTableEntry
Returns the “default value” for a type. Read more
impl Copy for ProbTableEntry
Auto Trait Implementations§
impl Freeze for ProbTableEntry
impl RefUnwindSafe for ProbTableEntry
impl Send for ProbTableEntry
impl Sync for ProbTableEntry
impl Unpin for ProbTableEntry
impl UnsafeUnpin for ProbTableEntry
impl UnwindSafe for ProbTableEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more