pub struct AtomAnnotations { /* private fields */ }Expand description
Custom per-atom columns, ordered by name for deterministic iteration.
Implementations§
Source§impl AtomAnnotations
impl AtomAnnotations
Sourcepub fn get(&self, name: &str) -> Option<&AtomAnnotation>
pub fn get(&self, name: &str) -> Option<&AtomAnnotation>
Looks up a column by its exact name.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&str, &AtomAnnotation)>
pub fn iter(&self) -> impl Iterator<Item = (&str, &AtomAnnotation)>
Iterates columns in lexicographic name order.
Sourcepub fn insert(
&mut self,
name: impl Into<Box<str>>,
column: AtomAnnotation,
) -> Option<AtomAnnotation>
pub fn insert( &mut self, name: impl Into<Box<str>>, column: AtomAnnotation, ) -> Option<AtomAnnotation>
Inserts or replaces a column, returning the previous one.
Sourcepub fn remove(&mut self, name: &str) -> Option<AtomAnnotation>
pub fn remove(&mut self, name: &str) -> Option<AtomAnnotation>
Removes a named column.
Trait Implementations§
Source§impl Clone for AtomAnnotations
impl Clone for AtomAnnotations
Source§impl Debug for AtomAnnotations
impl Debug for AtomAnnotations
Auto Trait Implementations§
impl Freeze for AtomAnnotations
impl RefUnwindSafe for AtomAnnotations
impl Send for AtomAnnotations
impl Sync for AtomAnnotations
impl Unpin for AtomAnnotations
impl UnsafeUnpin for AtomAnnotations
impl UnwindSafe for AtomAnnotations
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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