pub struct Csr {
pub primary: Vec<u16>,
pub list_offsets: Vec<u16>,
pub list_ids: Vec<u16>,
pub uniq_lists: usize,
}Expand description
The serializable grid prefilter: it stores one u16 per cell plus the interned candidate lists in compressed-sparse-row form.
Fields§
§primary: Vec<u16>One u16 per cell. With the high bit clear the value is a zone id
(NO_ZONE marker semantics are left to the container); with the
high bit set it is an index into the interned lists.
list_offsets: Vec<u16>The start offset of each interned list in Csr::list_ids.
list_ids: Vec<u16>The interned candidate lists, concatenated.
uniq_lists: usizeThe number of distinct interned lists.
Implementations§
Auto Trait Implementations§
impl Freeze for Csr
impl RefUnwindSafe for Csr
impl Send for Csr
impl Sync for Csr
impl Unpin for Csr
impl UnsafeUnpin for Csr
impl UnwindSafe for Csr
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