Enum ordbog::Mode [−][src]
pub enum Mode { Byte, Word, }
Expand description
Indicates whether to build a small Dict of up to 255 values or a larger one of up to 65535 values.
Variants
Build a Dict with up to 255 codes ranging over [1,255]
. This mode is
most appropriate when building a sketch that elides accesses to smaller
underlying storage blocks like 64-byte cache lines, where the small
repertoire of codes (and thus higher per-element chance of a false
positive) is offset by the small size of each storage block (and thus
small number of elements).
Build a Dict with up to 65535 codes ranging over [1,65535]
. This
mode is most appropriate when building a sketch that elides access to
larger underlying storage blocks like 4096-byte pages, where the larger
number of elements per storage block demands a comparatively low false
positive probability per element.
Implementations
Returns the count of exact codes in the mode: either 127
for
Mode::Byte or 32767
for Mode::Word.
Returns the maximum exact code in the mode: either 0xfe
for
Mode::Byte or 0xfffe
for Mode::Word.
Returns the maximum inexact code in the mode: either 0xff
for
Mode::Byte or 0xffff
for Mode::Word.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Mode
impl UnwindSafe for Mode
Blanket Implementations
Mutably borrows from an owned value. Read more