Struct style::properties::animated_properties::Translate2D
[−]
[src]
pub struct Translate2D(_, _);
A 2d translation function.
Trait Implementations
impl MallocSizeOf for Translate2D
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl Animate for Translate2D
[src]
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>
[src]
Animate a value towards another one, given an animation procedure.
impl Clone for Translate2D
[src]
fn clone(&self) -> Translate2D
[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 ComputeSquaredDistance for Translate2D
[src]
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
[src]
Computes the squared distance between two animatable values.