Enum freya_hooks::Transition
source · pub enum Transition {
Size(f64, f64),
Color(Color, Color),
}
Expand description
Configure a Transition
animation.
Variants§
Size(f64, f64)
Transition from one size to another.
Color(Color, Color)
Transition from one color to another.
Implementations§
Trait Implementations§
source§impl Clone for Transition
impl Clone for Transition
source§fn clone(&self) -> Transition
fn clone(&self) -> Transition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Transition
impl Debug for Transition
source§impl From<&Transition> for TransitionState
impl From<&Transition> for TransitionState
source§fn from(value: &Transition) -> Self
fn from(value: &Transition) -> Self
Converts to this type from the input type.
source§impl PartialEq<Transition> for Transition
impl PartialEq<Transition> for Transition
source§fn eq(&self, other: &Transition) -> bool
fn eq(&self, other: &Transition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.