pub enum ByteSearchStep {
CompareThroughByte {
byte: u64,
},
DifferenceAtByte {
byte: u64,
},
}Expand description
A requested line-local prefix comparison, or the first differing byte.
Byte positions are 1-based and can denote a byte absent from the shorter copy.
Variants§
CompareThroughByte
Compare prefixes from the selected line’s beginning through this byte.
Use crate::fingerprint_line_prefix on each copy. Requests past the
local line’s end hash the whole line; an absent line hashes no bytes.
DifferenceAtByte
The first differing byte; it may be absent from the shorter line.
Trait Implementations§
Source§impl Clone for ByteSearchStep
impl Clone for ByteSearchStep
impl Copy for ByteSearchStep
Source§impl Debug for ByteSearchStep
impl Debug for ByteSearchStep
impl Eq for ByteSearchStep
Source§impl PartialEq for ByteSearchStep
impl PartialEq for ByteSearchStep
impl StructuralPartialEq for ByteSearchStep
Auto Trait Implementations§
impl Freeze for ByteSearchStep
impl RefUnwindSafe for ByteSearchStep
impl Send for ByteSearchStep
impl Sync for ByteSearchStep
impl Unpin for ByteSearchStep
impl UnsafeUnpin for ByteSearchStep
impl UnwindSafe for ByteSearchStep
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