pub struct Attributes<A> {
pub inner: BTreeMap<A, RoaringBitmap>,
}Fields§
§inner: BTreeMap<A, RoaringBitmap>Implementations§
Source§impl<A> Attributes<A>
impl<A> Attributes<A>
pub fn new() -> Self
pub fn insert<R>(&mut self, range: R, attribute: A)
pub fn remove<R, Q>(&mut self, range: R, attribute: &Q)
pub fn contains<R, Q>(&self, range: R, attribute: &Q) -> bool
pub fn ranges<Q>( &self, attribute: &Q, ) -> Option<impl Iterator<Item = RangeInclusive<u32>>>
pub fn attrs<R>(&self, range: R) -> impl Iterator<Item = &A>
pub fn transform(&mut self, ops: &Edit)
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Attributes<A>
impl<A> RefUnwindSafe for Attributes<A>where
BTreeMap<A, RoaringBitmap>: RefUnwindSafe,
impl<A> Send for Attributes<A>
impl<A> Sync for Attributes<A>
impl<A> Unpin for Attributes<A>
impl<A> UnsafeUnpin for Attributes<A>where
BTreeMap<A, RoaringBitmap>: UnsafeUnpin,
impl<A> UnwindSafe for Attributes<A>where
BTreeMap<A, RoaringBitmap>: UnwindSafe,
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