pub struct Ramp<T> {
pub from: T,
pub to: T,
pub ease: Option<EasingChoice>,
pub at: Option<f64>,
pub duration: Option<f64>,
}Expand description
A change from one value to another; before it the value is from, after it to.
Fields§
§from: TThe value at the start.
to: TThe value at the end.
ease: Option<EasingChoice>The timing curve. Default linear.
at: Option<f64>When it starts. Default 0.
duration: Option<f64>How long it lasts. Default: to the node’s end.
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Ramp<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Ramp<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: PartialEq> StructuralPartialEq for Ramp<T>
Auto Trait Implementations§
impl<T> Forget for Ramp<T>
impl<T> Freeze for Ramp<T>where
T: Freeze,
impl<T> Move for Ramp<T>
impl<T> RefUnwindSafe for Ramp<T>where
T: RefUnwindSafe,
impl<T> Send for Ramp<T>where
T: Send,
impl<T> Sync for Ramp<T>where
T: Sync,
impl<T> Unpin for Ramp<T>where
T: Unpin,
impl<T> UnsafeUnpin for Ramp<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Ramp<T>where
T: UnwindSafe,
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