pub struct SizeParams {
pub min: usize,
pub avg: usize,
pub max: usize,
}Expand description
Struct containing size parameters for chunkers: min, average and max size of chunks.
Fields§
§min: usize§avg: usize§max: usizeImplementations§
Source§impl SizeParams
impl SizeParams
Sourcepub fn new(min: usize, avg: usize, max: usize) -> Self
pub fn new(min: usize, avg: usize, max: usize) -> Self
Creates a new instance of SizeParams struct.
Panics if not (min <= avg && avg <= max && min <= max).
pub fn leap_default() -> Self
pub fn rabin_default() -> Self
pub fn super_default() -> Self
pub fn ultra_default() -> Self
pub fn seq_default() -> Self
Trait Implementations§
Source§impl Clone for SizeParams
impl Clone for SizeParams
Source§fn clone(&self) -> SizeParams
fn clone(&self) -> SizeParams
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 SizeParams
impl Debug for SizeParams
Source§impl Display for SizeParams
impl Display for SizeParams
Source§impl PartialEq for SizeParams
impl PartialEq for SizeParams
impl Copy for SizeParams
impl Eq for SizeParams
impl StructuralPartialEq for SizeParams
Auto Trait Implementations§
impl Freeze for SizeParams
impl RefUnwindSafe for SizeParams
impl Send for SizeParams
impl Sync for SizeParams
impl Unpin for SizeParams
impl UnwindSafe for SizeParams
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