pub struct AnnotationContext {
pub details_queue: Vec<(NaiveDate, DateDetail)>,
pub shown_ranges: Vec<usize>,
}Fields§
§details_queue: Vec<(NaiveDate, DateDetail)>§shown_ranges: Vec<usize>Implementations§
Source§impl AnnotationContext
impl AnnotationContext
pub fn new() -> Self
pub fn add_detail(&mut self, date: NaiveDate, detail: DateDetail)
pub fn pop_next_detail(&mut self) -> Option<(NaiveDate, DateDetail)>
pub fn mark_range_shown(&mut self, idx: usize)
pub fn is_range_shown(&self, idx: usize) -> bool
Trait Implementations§
Source§impl Clone for AnnotationContext
impl Clone for AnnotationContext
Source§fn clone(&self) -> AnnotationContext
fn clone(&self) -> AnnotationContext
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 AnnotationContext
impl Debug for AnnotationContext
Source§impl Default for AnnotationContext
impl Default for AnnotationContext
Source§fn default() -> AnnotationContext
fn default() -> AnnotationContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnnotationContext
impl RefUnwindSafe for AnnotationContext
impl Send for AnnotationContext
impl Sync for AnnotationContext
impl Unpin for AnnotationContext
impl UnwindSafe for AnnotationContext
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