pub struct FilteredItem {
pub index: usize,
pub item: Box<dyn Item + Send + Sync>,
pub matches: Vec<usize>,
}Expand description
FilteredItem holds an item matched by the filter, its index in the unfiltered list, and the rune indices of matched characters.
Fields§
§index: usizeindex in the unfiltered list
item: Box<dyn Item + Send + Sync>item matched
matches: Vec<usize>rune indices of matched items
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FilteredItem
impl !UnwindSafe for FilteredItem
impl Freeze for FilteredItem
impl Send for FilteredItem
impl Sync for FilteredItem
impl Unpin for FilteredItem
impl UnsafeUnpin for FilteredItem
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