Struct analiticcl::types::VariantResult
source · pub struct VariantResult {
pub vocab_id: VocabId,
pub dist_score: f64,
pub freq_score: f64,
pub via: Option<VocabId>,
}
Fields§
§vocab_id: VocabId
§dist_score: f64
§freq_score: f64
§via: Option<VocabId>
Implementations§
Trait Implementations§
source§impl Clone for VariantResult
impl Clone for VariantResult
source§fn clone(&self) -> VariantResult
fn clone(&self) -> VariantResult
Returns a copy 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 VariantResult
impl Debug for VariantResult
source§impl PartialEq for VariantResult
impl PartialEq for VariantResult
source§fn eq(&self, other: &VariantResult) -> bool
fn eq(&self, other: &VariantResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VariantResult
Auto Trait Implementations§
impl Freeze for VariantResult
impl RefUnwindSafe for VariantResult
impl Send for VariantResult
impl Sync for VariantResult
impl Unpin for VariantResult
impl UnwindSafe for VariantResult
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> 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