pub enum ChecksumKind {
OneByte,
ThreeByte,
}Expand description
An enum determining the length of checksum.
Variants§
OneByte
TLSH uses one byte for checksum. The collision rate is 1/24.
ThreeByte
TLSH uses three bytes for checksum. The collision rate is 1/5800.
Implementations§
Source§impl ChecksumKind
impl ChecksumKind
pub fn checksum_len(&self) -> usize
Trait Implementations§
Source§impl Clone for ChecksumKind
impl Clone for ChecksumKind
Source§fn clone(&self) -> ChecksumKind
fn clone(&self) -> ChecksumKind
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 ChecksumKind
impl Debug for ChecksumKind
Source§impl Hash for ChecksumKind
impl Hash for ChecksumKind
Source§impl PartialEq for ChecksumKind
impl PartialEq for ChecksumKind
impl Copy for ChecksumKind
impl Eq for ChecksumKind
impl StructuralPartialEq for ChecksumKind
Auto Trait Implementations§
impl Freeze for ChecksumKind
impl RefUnwindSafe for ChecksumKind
impl Send for ChecksumKind
impl Sync for ChecksumKind
impl Unpin for ChecksumKind
impl UnwindSafe for ChecksumKind
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