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: usize
Trait Implementations§
Source§impl Clone for MeasuredPrefix
impl Clone for MeasuredPrefix
Source§fn clone(&self) -> MeasuredPrefix
fn clone(&self) -> MeasuredPrefix
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 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§impl PartialOrd for MeasuredPrefix
impl PartialOrd for MeasuredPrefix
impl Eq for MeasuredPrefix
impl StructuralPartialEq for MeasuredPrefix
Auto Trait Implementations§
impl Freeze for MeasuredPrefix
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