pub struct AnnotationList {
pub onset: f64,
pub duration: f64,
pub annotations: Vec<String>,
}Fields§
§onset: f64§duration: f64§annotations: Vec<String>Implementations§
Source§impl AnnotationList
impl AnnotationList
pub fn new( onset: f64, duration: f64, annotations: Vec<String>, ) -> Result<Self, EDFError>
pub fn new_time_keeping(onset: f64) -> Self
pub fn new_time_keeping_reasoned(onset: f64, reason: String) -> Self
pub fn add_annotation(&mut self, annotation: String) -> Result<(), EDFError>
pub fn insert_annotation( &mut self, index: usize, annotation: String, ) -> Result<(), EDFError>
pub fn remove_annotation(&mut self, index: usize)
pub fn get_annotations(&self) -> &Vec<String>
pub fn deserialize(data: &[u8]) -> Result<Self, EDFError>
pub fn serialize(&self) -> String
pub fn is_time_keeping(&self) -> bool
pub fn time_keeping_reason(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for AnnotationList
impl Clone for AnnotationList
Source§fn clone(&self) -> AnnotationList
fn clone(&self) -> AnnotationList
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 AnnotationList
impl Debug for AnnotationList
Source§impl Default for AnnotationList
impl Default for AnnotationList
Source§fn default() -> AnnotationList
fn default() -> AnnotationList
Returns the “default value” for a type. Read more
Source§impl PartialEq for AnnotationList
impl PartialEq for AnnotationList
impl StructuralPartialEq 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