pub struct TimelineView { /* private fields */ }Expand description
Holds the information needed to draw a timeline
See also crate::TimelineEdit
Implementations§
Source§impl TimelineView
impl TimelineView
Sourcepub fn from(
id: OpenTimelineId,
name: Name,
entities: Option<Vec<Entity>>,
) -> Self
pub fn from( id: OpenTimelineId, name: Name, entities: Option<Vec<Entity>>, ) -> Self
Create a TimelineView
Sourcepub fn id(&self) -> &OpenTimelineId
pub fn id(&self) -> &OpenTimelineId
Borrow the timeline’s ID
Trait Implementations§
Source§impl Clone for TimelineView
impl Clone for TimelineView
Source§fn clone(&self) -> TimelineView
fn clone(&self) -> TimelineView
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 TimelineView
impl Debug for TimelineView
Source§impl HasIdAndName for TimelineView
impl HasIdAndName for TimelineView
Source§fn id(&self) -> Option<OpenTimelineId>
fn id(&self) -> Option<OpenTimelineId>
Get the ID
Source§fn set_id(&mut self, id: OpenTimelineId)
fn set_id(&mut self, id: OpenTimelineId)
Set the ID - the
OpenTimelineId passed in must have been
initialised, and therefore is guaranteed to be validSource§impl PartialEq for TimelineView
impl PartialEq for TimelineView
Source§impl Serialize for TimelineView
impl Serialize for TimelineView
impl StructuralPartialEq for TimelineView
Auto Trait Implementations§
impl Freeze for TimelineView
impl RefUnwindSafe for TimelineView
impl Send for TimelineView
impl Sync for TimelineView
impl Unpin for TimelineView
impl UnsafeUnpin for TimelineView
impl UnwindSafe for TimelineView
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