pub enum SegmentShape {
Hold,
Amount(f64),
Value(ValueBezier),
}Expand description
What a keyframe segment does at one progress.
Variants§
Hold
Keeps the left keyframe’s value.
Amount(f64)
This fraction of the way to the next value; may leave 0..=1.
Value(ValueBezier)
Follows a value curve between the two keyframes’ values.
Trait Implementations§
Source§impl Clone for SegmentShape
impl Clone for SegmentShape
impl Copy for SegmentShape
Source§impl Debug for SegmentShape
impl Debug for SegmentShape
Source§impl PartialEq for SegmentShape
impl PartialEq for SegmentShape
impl StructuralPartialEq for SegmentShape
Auto Trait Implementations§
impl Forget for SegmentShape
impl Freeze for SegmentShape
impl Move for SegmentShape
impl RefUnwindSafe for SegmentShape
impl Send for SegmentShape
impl Sync for SegmentShape
impl Unpin for SegmentShape
impl UnsafeUnpin for SegmentShape
impl UnwindSafe for SegmentShape
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