pub struct AnnotationLayer {
pub name: String,
pub items: Vec<(AnnotationSpan, AnnotationKind)>,
}Expand description
Named annotation layer over an episode.
Fields§
§name: StringLayer name.
items: Vec<(AnnotationSpan, AnnotationKind)>Annotations.
Implementations§
Source§impl AnnotationLayer
impl AnnotationLayer
Sourcepub fn push(&mut self, span: AnnotationSpan, kind: AnnotationKind)
pub fn push(&mut self, span: AnnotationSpan, kind: AnnotationKind)
Pushes an annotation item.
Trait Implementations§
Source§impl Clone for AnnotationLayer
impl Clone for AnnotationLayer
Source§fn clone(&self) -> AnnotationLayer
fn clone(&self) -> AnnotationLayer
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 AnnotationLayer
impl Debug for AnnotationLayer
Source§impl PartialEq for AnnotationLayer
impl PartialEq for AnnotationLayer
Source§fn eq(&self, other: &AnnotationLayer) -> bool
fn eq(&self, other: &AnnotationLayer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnnotationLayer
Auto Trait Implementations§
impl Freeze for AnnotationLayer
impl RefUnwindSafe for AnnotationLayer
impl Send for AnnotationLayer
impl Sync for AnnotationLayer
impl Unpin for AnnotationLayer
impl UnsafeUnpin for AnnotationLayer
impl UnwindSafe for AnnotationLayer
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