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