Struct style::values::generics::basic_shape::Circle
[−]
[src]
pub struct Circle<H, V, LengthOrPercentage> { pub position: Position<H, V>, pub radius: ShapeRadius<LengthOrPercentage>, }
Fields
position: Position<H, V>
radius: ShapeRadius<LengthOrPercentage>
Trait Implementations
impl<H, V, LengthOrPercentage> Animate for Circle<H, V, LengthOrPercentage> where
Position<H, V>: Animate,
ShapeRadius<LengthOrPercentage>: Animate,
[src]
Position<H, V>: Animate,
ShapeRadius<LengthOrPercentage>: Animate,
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>
[src]
Animate a value towards another one, given an animation procedure.
impl<H: Clone, V: Clone, LengthOrPercentage: Clone> Clone for Circle<H, V, LengthOrPercentage>
[src]
fn clone(&self) -> Circle<H, V, LengthOrPercentage>
[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<H, V, LengthOrPercentage> ComputeSquaredDistance for Circle<H, V, LengthOrPercentage> where
Position<H, V>: ComputeSquaredDistance,
ShapeRadius<LengthOrPercentage>: ComputeSquaredDistance,
[src]
Position<H, V>: ComputeSquaredDistance,
ShapeRadius<LengthOrPercentage>: ComputeSquaredDistance,
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
[src]
Computes the squared distance between two animatable values.
impl<H: Copy, V: Copy, LengthOrPercentage: Copy> Copy for Circle<H, V, LengthOrPercentage>
[src]
impl<H: Debug, V: Debug, LengthOrPercentage: Debug> Debug for Circle<H, V, LengthOrPercentage>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<H, V, LengthOrPercentage> MallocSizeOf for Circle<H, V, LengthOrPercentage> where
H: MallocSizeOf,
V: MallocSizeOf,
LengthOrPercentage: MallocSizeOf,
[src]
H: MallocSizeOf,
V: MallocSizeOf,
LengthOrPercentage: MallocSizeOf,
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<H: PartialEq, V: PartialEq, LengthOrPercentage: PartialEq> PartialEq for Circle<H, V, LengthOrPercentage>
[src]
fn eq(&self, __arg_0: &Circle<H, V, LengthOrPercentage>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Circle<H, V, LengthOrPercentage>) -> bool
[src]
This method tests for !=
.
impl<H, V, LengthOrPercentage> ToComputedValue for Circle<H, V, LengthOrPercentage> where
Position<H, V>: ToComputedValue<ComputedValue = Position<<H as ToComputedValue>::ComputedValue, <V as ToComputedValue>::ComputedValue>>,
H: ToComputedValue,
V: ToComputedValue,
ShapeRadius<LengthOrPercentage>: ToComputedValue<ComputedValue = ShapeRadius<<LengthOrPercentage as ToComputedValue>::ComputedValue>>,
LengthOrPercentage: ToComputedValue,
[src]
Position<H, V>: ToComputedValue<ComputedValue = Position<<H as ToComputedValue>::ComputedValue, <V as ToComputedValue>::ComputedValue>>,
H: ToComputedValue,
V: ToComputedValue,
ShapeRadius<LengthOrPercentage>: ToComputedValue<ComputedValue = ShapeRadius<<LengthOrPercentage as ToComputedValue>::ComputedValue>>,
LengthOrPercentage: ToComputedValue,
type ComputedValue = Circle<<H as ToComputedValue>::ComputedValue, <V as ToComputedValue>::ComputedValue, <LengthOrPercentage as ToComputedValue>::ComputedValue>
The computed value type we're going to be converted to.
fn to_computed_value(&self, context: &Context) -> Self::ComputedValue
[src]
Convert a specified value to a computed value, using itself and the data inside the Context
. Read more
fn from_computed_value(computed: &Self::ComputedValue) -> Self
[src]
Convert a computed value to specified value form. Read more