pub struct IdMap<A: PartialEq + Eq + Hash + Clone> { /* private fields */ }Implementations§
Source§impl<A: PartialEq + Eq + Hash + Clone> IdMap<A>
impl<A: PartialEq + Eq + Hash + Clone> IdMap<A>
pub fn from_set(id_set: IdSet, attrs: Vec<ContentAttribute<A>>) -> Self
pub fn iter(&self) -> Iter<'_, A>
pub fn is_empty(&self) -> bool
pub fn contains(&self, id: &ID) -> bool
pub fn attributions(&self, range: &BlockRange) -> Vec<AttrRange<A>>
pub fn insert(&mut self, range: BlockRange, attrs: Vec<ContentAttribute<A>>)
pub fn remove(&mut self, range: &BlockRange)
pub fn merge_with(&mut self, other: Self)
pub fn merge_many(id_maps: &[Self]) -> Self
pub fn intersect_with(&mut self, other: &Self)
pub fn filter<F>(&self, predicate: F) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for IdMap<A>
impl<A> RefUnwindSafe for IdMap<A>where
A: RefUnwindSafe,
impl<A> Send for IdMap<A>
impl<A> Sync for IdMap<A>
impl<A> Unpin for IdMap<A>
impl<A> UnsafeUnpin for IdMap<A>
impl<A> UnwindSafe for IdMap<A>where
A: RefUnwindSafe,
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