pub struct TimeControlSegment {
pub start: (i64, i64),
pub end: (i64, i64),
pub controls: Option<[(f64, f64); 2]>,
pub kind: SegmentKind,
}Expand description
One segment of a time curve in (timeline ticks, source ticks): its two ends and, for a Bezier kind, its two control points.
Fields§
§start: (i64, i64)The left keyframe.
end: (i64, i64)The right keyframe.
controls: Option<[(f64, f64); 2]>The two inner control points of a Bezier kind, the same for a timing curve and for the value curve that draws the same line.
kind: SegmentKindWhat draws the segment.
Trait Implementations§
Source§impl Clone for TimeControlSegment
impl Clone for TimeControlSegment
impl Copy for TimeControlSegment
Source§impl Debug for TimeControlSegment
impl Debug for TimeControlSegment
Source§impl PartialEq for TimeControlSegment
impl PartialEq for TimeControlSegment
impl StructuralPartialEq for TimeControlSegment
Auto Trait Implementations§
impl Forget for TimeControlSegment
impl Freeze for TimeControlSegment
impl Move for TimeControlSegment
impl RefUnwindSafe for TimeControlSegment
impl Send for TimeControlSegment
impl Sync for TimeControlSegment
impl Unpin for TimeControlSegment
impl UnsafeUnpin for TimeControlSegment
impl UnwindSafe for TimeControlSegment
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