Enum style::values::animated::Procedure
[−]
[src]
pub enum Procedure { Interpolate { progress: f64, }, Add, Accumulate { count: u64, }, }
An animation procedure.
https://drafts.csswg.org/web-animations/#procedures-for-animating-properties
Variants
Interpolate
Fields of Interpolate
progress: f64 |
Add
Accumulate
Fields of Accumulate
count: u64 |
Methods
impl Procedure
[src]
pub fn weights(self) -> (f64, f64)
[src]
Returns this procedure as a pair of weights.
This is useful for animations that don't animate differently depending on the used procedure.
Trait Implementations
impl Clone for Procedure
[src]
fn clone(&self) -> Procedure
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Procedure
[src]
impl Debug for Procedure
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more