pub struct Annotation { /* private fields */ }Implementations§
Source§impl Annotation
impl Annotation
pub fn new() -> Self
pub fn set_sample_id(&mut self, sample_id: Option<SampleID>)
pub fn sample_id(&self) -> Option<SampleID>
pub fn set_name(&mut self, name: Option<String>)
pub fn name(&self) -> Option<&String>
pub fn set_sequence_name(&mut self, sequence_name: Option<String>)
pub fn sequence_name(&self) -> Option<&String>
pub fn set_group(&mut self, group: Option<String>)
pub fn group(&self) -> Option<&String>
pub fn object_id(&self) -> Option<&String>
pub fn set_object_id(&mut self, object_id: Option<String>)
pub fn label(&self) -> Option<&String>
pub fn set_label(&mut self, label: Option<String>)
pub fn label_index(&self) -> Option<u64>
pub fn set_label_index(&mut self, label_index: Option<u64>)
pub fn box2d(&self) -> Option<&Box2d>
pub fn set_box2d(&mut self, box2d: Option<Box2d>)
pub fn box3d(&self) -> Option<&Box3d>
pub fn set_box3d(&mut self, box3d: Option<Box3d>)
pub fn mask(&self) -> Option<&Mask>
pub fn set_mask(&mut self, mask: Option<Mask>)
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
Returns a duplicate 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 Debug for Annotation
impl Debug for Annotation
Source§impl Default for Annotation
impl Default for Annotation
Source§impl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe for Annotation
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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