pub struct Highlights(pub [RoaringBitmap; 10]);Expand description
Highlighting structure mapping row indices to one of up to 10 color-tag groups.
Tuple Fields§
§0: [RoaringBitmap; 10]Implementations§
Source§impl Highlights
impl Highlights
Sourcepub fn get_usize(&self, index: usize) -> Option<u8>
pub fn get_usize(&self, index: usize) -> Option<u8>
Accesses the highlight color index assigned to the row (if any).
Sourcepub fn insert(&mut self, typ: u8, index: u32) -> bool
pub fn insert(&mut self, typ: u8, index: u32) -> bool
Adds a row index to a specific highlight color group.
Sourcepub fn get(&self, index: u32) -> Option<u8>
pub fn get(&self, index: u32) -> Option<u8>
Accesses the highlight color group index matching a specific row index.
Sourcepub fn insert_map(&mut self, typ: u8, map: &RoaringBitmap)
pub fn insert_map(&mut self, typ: u8, map: &RoaringBitmap)
Unions a selection map into a specific highlight group, removing them from other groups.
Sourcepub fn remove_map(&mut self, map: &RoaringBitmap)
pub fn remove_map(&mut self, map: &RoaringBitmap)
Removes a collection of row indices from all color highlight groups.
Trait Implementations§
Source§impl Clone for Highlights
impl Clone for Highlights
Source§fn clone(&self) -> Highlights
fn clone(&self) -> Highlights
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Highlights
impl Debug for Highlights
Source§impl Default for Highlights
impl Default for Highlights
Source§fn default() -> Highlights
fn default() -> Highlights
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Highlights
impl<'de> Deserialize<'de> for Highlights
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Highlights
impl RefUnwindSafe for Highlights
impl Send for Highlights
impl Sync for Highlights
impl Unpin for Highlights
impl UnsafeUnpin for Highlights
impl UnwindSafe for Highlights
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more