pub enum BoundaryRule {
HashThreshold {
factor: u32,
},
Weibull {
shape: u32,
},
RollingBuzHash {
window: u16,
},
}Expand description
Rule used to select a content-defined boundary.
Variants§
HashThreshold
Split when the hash falls below the factor-derived threshold.
Weibull
Split according to a bounded Weibull distribution.
RollingBuzHash
Split from a rolling BuzHash window.
Trait Implementations§
Source§impl Clone for BoundaryRule
impl Clone for BoundaryRule
Source§fn clone(&self) -> BoundaryRule
fn clone(&self) -> BoundaryRule
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 moreSource§impl Debug for BoundaryRule
impl Debug for BoundaryRule
Source§impl<'de> Deserialize<'de> for BoundaryRule
impl<'de> Deserialize<'de> for BoundaryRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BoundaryRule
Source§impl PartialEq for BoundaryRule
impl PartialEq for BoundaryRule
Source§impl Serialize for BoundaryRule
impl Serialize for BoundaryRule
impl StructuralPartialEq for BoundaryRule
Auto Trait Implementations§
impl Freeze for BoundaryRule
impl RefUnwindSafe for BoundaryRule
impl Send for BoundaryRule
impl Sync for BoundaryRule
impl Unpin for BoundaryRule
impl UnsafeUnpin for BoundaryRule
impl UnwindSafe for BoundaryRule
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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