pub struct CollectionRowInfo {
pub kind: CollectionRow,
pub source: Option<(DocumentId, usize, usize)>,
pub source_matches: Vec<(usize, usize)>,
pub card_active: bool,
pub source_dirty: bool,
pub source_readonly: bool,
}Expand description
What the renderer needs per collection row (0049 §6).
Fields§
§kind: CollectionRow§source: Option<(DocumentId, usize, usize)>Body rows: (source document, source byte start, source byte end).
source_matches: Vec<(usize, usize)>Query hit spans within the row, in SOURCE bytes (0050 §7).
card_active: boolThe caret sits inside this row’s card (focus chrome).
source_dirty: bool§source_readonly: boolAuto Trait Implementations§
impl Freeze for CollectionRowInfo
impl RefUnwindSafe for CollectionRowInfo
impl Send for CollectionRowInfo
impl Sync for CollectionRowInfo
impl Unpin for CollectionRowInfo
impl UnsafeUnpin for CollectionRowInfo
impl UnwindSafe for CollectionRowInfo
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