pub struct RowFinder<'a> {
pub rows: &'a [Row],
/* private fields */
}
Expand description
Fields§
§rows: &'a [Row]
Represents an array of Row objects that we want to run a search on.
Implementations§
Source§impl<'a> RowFinder<'a>
impl<'a> RowFinder<'a>
Sourcepub fn new(
rows: &'a [Row],
column_name_to_id: &'a ColumnNameToId<'a>,
column_name: &'a str,
value: CellValue,
cmp: Comp,
) -> Result<Self, Box<dyn Error + Send + Sync>>
pub fn new( rows: &'a [Row], column_name_to_id: &'a ColumnNameToId<'a>, column_name: &'a str, value: CellValue, cmp: Comp, ) -> Result<Self, Box<dyn Error + Send + Sync>>
Sourcepub fn new_by_id(
rows: &'a [Row],
column_id: u64,
value: CellValue,
cmp: Comp,
) -> Self
pub fn new_by_id( rows: &'a [Row], column_id: u64, value: CellValue, cmp: Comp, ) -> Self
Create a new RowFinder
by Column Id instead of Column Name.
Auto Trait Implementations§
impl<'a> Freeze for RowFinder<'a>
impl<'a> RefUnwindSafe for RowFinder<'a>
impl<'a> Send for RowFinder<'a>
impl<'a> Sync for RowFinder<'a>
impl<'a> Unpin for RowFinder<'a>
impl<'a> UnwindSafe for RowFinder<'a>
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