pub struct TimelineNoteCollection { /* private fields */ }Expand description
A collection of timeline notes for a review session.
Implementations§
Source§impl TimelineNoteCollection
impl TimelineNoteCollection
Sourcepub fn new(duration_frames: u64) -> Self
pub fn new(duration_frames: u64) -> Self
Create a new collection for media with the given duration.
Sourcepub fn add_note(&mut self, note: TimelineNote)
pub fn add_note(&mut self, note: TimelineNote)
Add a note to the collection.
Sourcepub fn get_note(&self, id: &str) -> Option<&TimelineNote>
pub fn get_note(&self, id: &str) -> Option<&TimelineNote>
Look up a note by its ID.
Sourcepub fn resolve_note(&mut self, id: &str) -> bool
pub fn resolve_note(&mut self, id: &str) -> bool
Mark the note with the given ID as resolved. Returns true on success.
Sourcepub fn notes_at_frame(&self, frame: u64) -> Vec<&TimelineNote>
pub fn notes_at_frame(&self, frame: u64) -> Vec<&TimelineNote>
All notes that cover the given frame.
All notes written by a specific author.
Sourcepub fn unresolved_count(&self) -> usize
pub fn unresolved_count(&self) -> usize
Number of unresolved notes.
Sourcepub fn all_notes(&self) -> &[TimelineNote]
pub fn all_notes(&self) -> &[TimelineNote]
All notes in insertion order.
Sourcepub fn notes_by_type(&self, note_type: NoteType) -> Vec<&TimelineNote>
pub fn notes_by_type(&self, note_type: NoteType) -> Vec<&TimelineNote>
All notes of a given type.
Sourcepub fn export_summary(&self) -> String
pub fn export_summary(&self) -> String
Generate a plain-text summary of all notes.
Auto Trait Implementations§
impl Freeze for TimelineNoteCollection
impl RefUnwindSafe for TimelineNoteCollection
impl Send for TimelineNoteCollection
impl Sync for TimelineNoteCollection
impl Unpin for TimelineNoteCollection
impl UnsafeUnpin for TimelineNoteCollection
impl UnwindSafe for TimelineNoteCollection
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