pub enum AnimationValue {
Scalar(f32),
Point(Point),
Vector(Vector),
Size(Size),
Rect(Rect),
Color(Color),
Transform(Transform),
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AnimationValue
impl Clone for AnimationValue
Source§fn clone(&self) -> AnimationValue
fn clone(&self) -> AnimationValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AnimationValue
Source§impl Debug for AnimationValue
impl Debug for AnimationValue
Source§impl From<Color> for AnimationValue
impl From<Color> for AnimationValue
Source§fn from(value: Color) -> AnimationValue
fn from(value: Color) -> AnimationValue
Converts to this type from the input type.
Source§impl From<Point> for AnimationValue
impl From<Point> for AnimationValue
Source§fn from(value: Point) -> AnimationValue
fn from(value: Point) -> AnimationValue
Converts to this type from the input type.
Source§impl From<Rect> for AnimationValue
impl From<Rect> for AnimationValue
Source§fn from(value: Rect) -> AnimationValue
fn from(value: Rect) -> AnimationValue
Converts to this type from the input type.
Source§impl From<Size> for AnimationValue
impl From<Size> for AnimationValue
Source§fn from(value: Size) -> AnimationValue
fn from(value: Size) -> AnimationValue
Converts to this type from the input type.
Source§impl From<Transform> for AnimationValue
impl From<Transform> for AnimationValue
Source§fn from(value: Transform) -> AnimationValue
fn from(value: Transform) -> AnimationValue
Converts to this type from the input type.
Source§impl From<Vector> for AnimationValue
impl From<Vector> for AnimationValue
Source§fn from(value: Vector) -> AnimationValue
fn from(value: Vector) -> AnimationValue
Converts to this type from the input type.
Source§impl From<f32> for AnimationValue
impl From<f32> for AnimationValue
Source§fn from(value: f32) -> AnimationValue
fn from(value: f32) -> AnimationValue
Converts to this type from the input type.
Source§impl Interpolate for AnimationValue
impl Interpolate for AnimationValue
fn interpolate( from: AnimationValue, to: AnimationValue, t: f32, ) -> AnimationValue
Source§fn extrapolate(
from: AnimationValue,
to: AnimationValue,
t: f32,
) -> AnimationValue
fn extrapolate( from: AnimationValue, to: AnimationValue, t: f32, ) -> AnimationValue
Like
Interpolate::interpolate, but lets t leave 0..=1 so a
spring can overshoot its target. Values that cannot extend past their
endpoints, such as colors, clamp instead.Source§impl PartialEq for AnimationValue
impl PartialEq for AnimationValue
impl StructuralPartialEq for AnimationValue
Auto Trait Implementations§
impl Forget for AnimationValue
impl Freeze for AnimationValue
impl Move for AnimationValue
impl RefUnwindSafe for AnimationValue
impl Send for AnimationValue
impl Sync for AnimationValue
impl Unpin for AnimationValue
impl UnsafeUnpin for AnimationValue
impl UnwindSafe for AnimationValue
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