Enum freya::hooks::Transition  
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§
§impl Transition
 
impl Transition
pub fn new_size(start: f64, end: f64) -> Transition
pub fn new_size(start: f64, end: f64) -> Transition
Create a Size transition.
pub fn new_color(start: &str, end: &str) -> Transition
pub fn new_color(start: &str, end: &str) -> Transition
Create a Color transition.
Trait Implementations§
§impl Clone for Transition
 
impl Clone for Transition
§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 more§impl Debug for Transition
 
impl Debug for Transition
§impl From<&Transition> for TransitionState
 
impl From<&Transition> for TransitionState
§fn from(value: &Transition) -> TransitionState
 
fn from(value: &Transition) -> TransitionState
Converts to this type from the input type.
§impl PartialEq<Transition> for Transition
 
impl PartialEq<Transition> for Transition
§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 ==.impl Copy for Transition
impl StructuralPartialEq for Transition
Auto Trait Implementations§
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnwindSafe for Transition
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