LengthProcessingInfo

Struct LengthProcessingInfo 

Source
pub struct LengthProcessingInfo<const SIZE_BUCKETS: usize>
where
    FuzzyHashBucketsInfo<SIZE_BUCKETS>: FuzzyHashBucketMapper;
Expand description

Length processing information (depending on the number of buckets).

A valid instantiation of this type (constrained by a private trait) implements the sealed trait ConstrainedLengthProcessingInfo.

Trait Implementations§

Source§

impl ConstrainedLengthProcessingInfo for LengthProcessingInfo<NUM_BUCKETS_LONG>
where FuzzyHashBucketsInfo<NUM_BUCKETS_LONG>: FuzzyHashBucketMapper,

Source§

const MIN: u32 = 50u32

The minimum data length (on all modes).
Source§

const MIN_CONSERVATIVE: u32 = 128u32

The minimum data length (on the conservative mode).
Source§

const MAX: u32 = 4_224_281_216u32

The maximum data length (inclusive). Read more
Source§

impl ConstrainedLengthProcessingInfo for LengthProcessingInfo<NUM_BUCKETS_NORMAL>
where FuzzyHashBucketsInfo<NUM_BUCKETS_NORMAL>: FuzzyHashBucketMapper,

Source§

const MIN: u32 = 50u32

The minimum data length (on all modes).
Source§

const MIN_CONSERVATIVE: u32 = 128u32

The minimum data length (on the conservative mode).
Source§

const MAX: u32 = 4_224_281_216u32

The maximum data length (inclusive). Read more
Source§

impl ConstrainedLengthProcessingInfo for LengthProcessingInfo<NUM_BUCKETS_SHORT>
where FuzzyHashBucketsInfo<NUM_BUCKETS_SHORT>: FuzzyHashBucketMapper,

Source§

const MIN: u32 = 10u32

The minimum data length (on all modes).
Source§

const MIN_CONSERVATIVE: u32 = 10u32

The minimum data length (on the conservative mode).
Source§

const MAX: u32 = 4_224_281_216u32

The maximum data length (inclusive). Read more

Auto Trait Implementations§

§

impl<const SIZE_BUCKETS: usize> Freeze for LengthProcessingInfo<SIZE_BUCKETS>

§

impl<const SIZE_BUCKETS: usize> RefUnwindSafe for LengthProcessingInfo<SIZE_BUCKETS>

§

impl<const SIZE_BUCKETS: usize> Send for LengthProcessingInfo<SIZE_BUCKETS>

§

impl<const SIZE_BUCKETS: usize> Sync for LengthProcessingInfo<SIZE_BUCKETS>

§

impl<const SIZE_BUCKETS: usize> Unpin for LengthProcessingInfo<SIZE_BUCKETS>

§

impl<const SIZE_BUCKETS: usize> UnwindSafe for LengthProcessingInfo<SIZE_BUCKETS>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.