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§impl PartialEq for AnimationValue
impl PartialEq for AnimationValue
impl StructuralPartialEq for AnimationValue
Auto Trait Implementations§
impl Freeze 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.