pub enum ResizeFactor {
X1,
X2,
X4,
X8,
}Expand description
Controls how aggressively an ArrayOfDoubles sketch’s internal hash table
grows. Mirrors upstream’s datasketches::resize_factor. Default is X8,
matching theta_constants::DEFAULT_RESIZE_FACTOR (the tuple family
inherits Theta’s builder defaults).
This is a distinct type from the theta module’s ResizeFactor with the
same shape — the two sketch families are independently feature-gated and
do not share types. (Deliberately not an intra-doc link: theta may not
be compiled in.)
Variants§
X1
Grow by 1x (i.e. never resize past the initial allocation).
X2
Grow by 2x each time the hash table fills.
X4
Grow by 4x each time the hash table fills.
X8
Grow by 8x each time the hash table fills. The default.
Trait Implementations§
Source§impl Clone for ResizeFactor
impl Clone for ResizeFactor
Source§fn clone(&self) -> ResizeFactor
fn clone(&self) -> ResizeFactor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResizeFactor
Source§impl Debug for ResizeFactor
impl Debug for ResizeFactor
Source§impl Default for ResizeFactor
impl Default for ResizeFactor
Source§fn default() -> ResizeFactor
fn default() -> ResizeFactor
Returns the “default value” for a type. Read more
impl Eq for ResizeFactor
Source§impl From<ResizeFactor> for TupleResizeFactor
impl From<ResizeFactor> for TupleResizeFactor
Source§fn from(rf: ResizeFactor) -> Self
fn from(rf: ResizeFactor) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResizeFactor
impl PartialEq for ResizeFactor
impl StructuralPartialEq for ResizeFactor
Auto Trait Implementations§
impl Freeze for ResizeFactor
impl RefUnwindSafe for ResizeFactor
impl Send for ResizeFactor
impl Sync for ResizeFactor
impl Unpin for ResizeFactor
impl UnsafeUnpin for ResizeFactor
impl UnwindSafe for ResizeFactor
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