pub enum AnimateResponses {
Tf(bool),
U128(u128),
F64(f64),
Txt(String),
U128f64(u128, f64),
}Expand description
When we animate an attribute of a Type the result (the new created value) can be a String a bool a float or any mixture of these. In rust when ever you want to send back multiple types of data from “A” function you have to create an Enum of all the possible return data types. These are all the possible accepted legit results from ‘animate’ function.
Variants§
Trait Implementations§
Source§impl Clone for AnimateResponses
impl Clone for AnimateResponses
Source§fn clone(&self) -> AnimateResponses
fn clone(&self) -> AnimateResponses
Returns a duplicate 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 AnimateResponses
impl Debug for AnimateResponses
Source§impl PartialEq for AnimateResponses
impl PartialEq for AnimateResponses
impl StructuralPartialEq for AnimateResponses
Auto Trait Implementations§
impl Freeze for AnimateResponses
impl RefUnwindSafe for AnimateResponses
impl Send for AnimateResponses
impl Sync for AnimateResponses
impl Unpin for AnimateResponses
impl UnwindSafe for AnimateResponses
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