Struct strprox::MeasuredPrefix
source · pub struct MeasuredPrefix {
pub string: String,
pub prefix_distance: usize,
}Expand description
Structure that associates a string with its its prefix edit distance from the query
Fields§
§string: String§prefix_distance: usizeTrait Implementations§
source§impl Debug for MeasuredPrefix
impl Debug for MeasuredPrefix
source§impl Display for MeasuredPrefix
impl Display for MeasuredPrefix
source§impl Ord for MeasuredPrefix
impl Ord for MeasuredPrefix
source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Compare the prefix and then the strings for MeasuredPrefix
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 MeasuredPrefix
impl PartialEq for MeasuredPrefix
source§fn eq(&self, other: &MeasuredPrefix) -> bool
fn eq(&self, other: &MeasuredPrefix) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for MeasuredPrefix
impl PartialOrd for MeasuredPrefix
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 moreimpl Eq for MeasuredPrefix
impl StructuralEq for MeasuredPrefix
impl StructuralPartialEq for MeasuredPrefix
Auto Trait Implementations§
impl RefUnwindSafe for MeasuredPrefix
impl Send for MeasuredPrefix
impl Sync for MeasuredPrefix
impl Unpin for MeasuredPrefix
impl UnwindSafe for MeasuredPrefix
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