Enum style::values::distance::SquaredDistance
[−]
[src]
pub enum SquaredDistance { Sqrt(f64), Value(f64), }
A distance between two animatable values.
Variants
Sqrt(f64)
Represented as the square root of the squared distance.
Value(f64)
Represented as the squared distance itself.
Methods
impl SquaredDistance
[src]
Trait Implementations
impl Clone for SquaredDistance
[src]
fn clone(&self) -> SquaredDistance
[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 SquaredDistance
[src]
impl Debug for SquaredDistance
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<SquaredDistance> for f64
[src]
fn from(distance: SquaredDistance) -> Self
[src]
Performs the conversion.
impl Add for SquaredDistance
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
Performs the +
operation.