pub enum DescriptorKind {
Binary,
Float32,
}Expand description
Scalar representation used by a descriptor matrix.
Variants§
Binary
Packed binary descriptor; matching uses Hamming distance.
Float32
Float32 descriptor; matching normally uses L2 distance.
Trait Implementations§
Source§impl Clone for DescriptorKind
impl Clone for DescriptorKind
Source§fn clone(&self) -> DescriptorKind
fn clone(&self) -> DescriptorKind
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 DescriptorKind
impl Debug for DescriptorKind
Source§impl Hash for DescriptorKind
impl Hash for DescriptorKind
Source§impl PartialEq for DescriptorKind
impl PartialEq for DescriptorKind
Source§fn eq(&self, other: &DescriptorKind) -> bool
fn eq(&self, other: &DescriptorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DescriptorKind
impl Eq for DescriptorKind
impl StructuralPartialEq for DescriptorKind
Auto Trait Implementations§
impl Freeze for DescriptorKind
impl RefUnwindSafe for DescriptorKind
impl Send for DescriptorKind
impl Sync for DescriptorKind
impl Unpin for DescriptorKind
impl UnsafeUnpin for DescriptorKind
impl UnwindSafe for DescriptorKind
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