Struct csf::fp::level_size_chooser::OptimalLevelSize
source · pub struct OptimalLevelSize;
Expand description
Chooses optimal level size considering distribution of incidence of values.
Trait Implementations§
source§impl Clone for OptimalLevelSize
impl Clone for OptimalLevelSize
source§fn clone(&self) -> OptimalLevelSize
fn clone(&self) -> OptimalLevelSize
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 Default for OptimalLevelSize
impl Default for OptimalLevelSize
source§fn default() -> OptimalLevelSize
fn default() -> OptimalLevelSize
Returns the “default value” for a type. Read more
source§impl Display for OptimalLevelSize
impl Display for OptimalLevelSize
source§impl LevelSizeChooser for OptimalLevelSize
impl LevelSizeChooser for OptimalLevelSize
source§fn size_segments<C: Coding>(
&self,
coding: &C,
values: &[C::Codeword],
value_rev_indices: &[u8]
) -> usize
fn size_segments<C: Coding>( &self, coding: &C, values: &[C::Codeword], value_rev_indices: &[u8] ) -> usize
Returns number of 64-bit segments to use for given level input.
source§fn max_size_segments(&self, max_level_size: usize) -> usize
fn max_size_segments(&self, max_level_size: usize) -> usize
Returns maximal number of segment that can be returned by
size_segments
for level of size max_level_size
or less.source§impl SimpleLevelSizeChooser for OptimalLevelSize
impl SimpleLevelSizeChooser for OptimalLevelSize
source§fn size_segments(&self, values: &[u8], bits_per_value: u8) -> usize
fn size_segments(&self, values: &[u8], bits_per_value: u8) -> usize
Returns number of 64-bit segments to use for given level input.
source§fn max_size_segments(&self, max_level_size: usize) -> usize
fn max_size_segments(&self, max_level_size: usize) -> usize
Returns maximal number of segment that can be returned by
size_segments
for level of size max_level_size
or less.impl Copy for OptimalLevelSize
Auto Trait Implementations§
impl RefUnwindSafe for OptimalLevelSize
impl Send for OptimalLevelSize
impl Sync for OptimalLevelSize
impl Unpin for OptimalLevelSize
impl UnwindSafe for OptimalLevelSize
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