pub struct FrameMatch {
pub frame_a: usize,
pub frame_b: usize,
pub hamming_distance: u32,
pub similarity: f64,
}Expand description
A near-duplicate match found by the sliding window detector.
Fields§
§frame_a: usizeIndex of the first (reference) frame.
frame_b: usizeIndex of the second (candidate) frame.
hamming_distance: u32Hamming distance between the two hashes.
similarity: f64Similarity score [0.0, 1.0].
Trait Implementations§
Source§impl Clone for FrameMatch
impl Clone for FrameMatch
Source§fn clone(&self) -> FrameMatch
fn clone(&self) -> FrameMatch
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 FrameMatch
impl Debug for FrameMatch
Source§impl PartialEq for FrameMatch
impl PartialEq for FrameMatch
Source§fn eq(&self, other: &FrameMatch) -> bool
fn eq(&self, other: &FrameMatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FrameMatch
Auto Trait Implementations§
impl Freeze for FrameMatch
impl RefUnwindSafe for FrameMatch
impl Send for FrameMatch
impl Sync for FrameMatch
impl Unpin for FrameMatch
impl UnsafeUnpin for FrameMatch
impl UnwindSafe for FrameMatch
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,
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