Enum lace::RowSimilarityVariant
source · pub enum RowSimilarityVariant {
ViewWeighted,
ColumnWeighted,
}
Expand description
The variant of row similarity to compute
Variants§
ViewWeighted
Plain row similarity. The proportion of views in which the two rows are in the same category.
ColumnWeighted
The proportion of columns in which the two rows are in the same view.
Trait Implementations§
source§impl Clone for RowSimilarityVariant
impl Clone for RowSimilarityVariant
source§fn clone(&self) -> RowSimilarityVariant
fn clone(&self) -> RowSimilarityVariant
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 RowSimilarityVariant
impl Debug for RowSimilarityVariant
source§impl<'de> Deserialize<'de> for RowSimilarityVariant
impl<'de> Deserialize<'de> for RowSimilarityVariant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for RowSimilarityVariant
impl Hash for RowSimilarityVariant
source§impl Ord for RowSimilarityVariant
impl Ord for RowSimilarityVariant
source§fn cmp(&self, other: &RowSimilarityVariant) -> Ordering
fn cmp(&self, other: &RowSimilarityVariant) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RowSimilarityVariant
impl PartialEq for RowSimilarityVariant
source§fn eq(&self, other: &RowSimilarityVariant) -> bool
fn eq(&self, other: &RowSimilarityVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RowSimilarityVariant
impl PartialOrd for RowSimilarityVariant
source§fn partial_cmp(&self, other: &RowSimilarityVariant) -> Option<Ordering>
fn partial_cmp(&self, other: &RowSimilarityVariant) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for RowSimilarityVariant
impl Serialize for RowSimilarityVariant
impl Copy for RowSimilarityVariant
impl Eq for RowSimilarityVariant
impl StructuralPartialEq for RowSimilarityVariant
Auto Trait Implementations§
impl RefUnwindSafe for RowSimilarityVariant
impl Send for RowSimilarityVariant
impl Sync for RowSimilarityVariant
impl Unpin for RowSimilarityVariant
impl UnwindSafe for RowSimilarityVariant
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.