Struct capnp::schema::AnnotationList
source · pub struct AnnotationList { /* private fields */ }
Expand description
A list of annotations.
Implementations§
source§impl AnnotationList
impl AnnotationList
pub fn len(&self) -> u32
pub fn is_empty(&self) -> bool
pub fn get(self, index: u32) -> Annotation
sourcepub fn find(self, id: u64) -> Option<Annotation>
pub fn find(self, id: u64) -> Option<Annotation>
Returns the first annotation in the list that matches id
.
Otherwise returns None
.
pub fn iter(self) -> ListIter<Self, Annotation> ⓘ
Trait Implementations§
source§impl Clone for AnnotationList
impl Clone for AnnotationList
source§fn clone(&self) -> AnnotationList
fn clone(&self) -> AnnotationList
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl IndexMove<u32, Annotation> for AnnotationList
impl IndexMove<u32, Annotation> for AnnotationList
fn index_move(&self, index: u32) -> Annotation
source§impl IntoIterator for AnnotationList
impl IntoIterator for AnnotationList
§type Item = Annotation
type Item = Annotation
The type of the elements being iterated over.
§type IntoIter = ListIter<AnnotationList, <AnnotationList as IntoIterator>::Item>
type IntoIter = ListIter<AnnotationList, <AnnotationList as IntoIterator>::Item>
Which kind of iterator are we turning this into?
impl Copy for AnnotationList
Auto Trait Implementations§
impl Freeze for AnnotationList
impl !RefUnwindSafe for AnnotationList
impl !Send for AnnotationList
impl !Sync for AnnotationList
impl Unpin for AnnotationList
impl !UnwindSafe for AnnotationList
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