pub struct Match {
pub str: String,
pub index: usize,
pub matched_indexes: Vec<usize>,
pub score: i32,
}Expand description
Match represents a matched string.
Fields§
§str: StringThe matched string.
index: usizeThe index of the matched string in the supplied slice.
matched_indexes: Vec<usize>The indexes of matched characters. Useful for highlighting matches.
score: i32Score used to rank matches.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnsafeUnpin for Match
impl UnwindSafe for Match
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