#[repr(C)]pub struct CoordPair {
x: CSSFloat,
y: CSSFloat,
}
Expand description
The path coord type.
Fields§
§x: CSSFloat
§y: CSSFloat
Implementations§
Trait Implementations§
source§impl AddAssign<CoordPair> for CoordPair
impl AddAssign<CoordPair> for CoordPair
source§fn add_assign(&mut self, rhs: CoordPair)
fn add_assign(&mut self, rhs: CoordPair)
Performs the
+=
operation. Read moresource§impl ComputeSquaredDistance for CoordPair
impl ComputeSquaredDistance for CoordPair
source§fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
Computes the squared distance between two animatable values.
source§impl<'de> Deserialize<'de> for CoordPair
impl<'de> Deserialize<'de> for CoordPair
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
source§impl MallocSizeOf for CoordPair
impl MallocSizeOf for CoordPair
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq<CoordPair> for CoordPair
impl PartialEq<CoordPair> for CoordPair
source§impl SpecifiedValueInfo for CoordPair
impl SpecifiedValueInfo for CoordPair
source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
Supported CssTypes by the given value type. Read more
source§impl ToAnimatedZero for CoordPair
impl ToAnimatedZero for CoordPair
source§fn to_animated_zero(&self) -> Result<Self, ()>
fn to_animated_zero(&self) -> Result<Self, ()>
Returns a value that, when added with an underlying value, will produce the underlying
value. This is used for SMIL animation’s “by-animation” where SMIL first interpolates from
the zero value to the ‘by’ value, and then adds the result to the underlying value. Read more
source§impl ToComputedValue for CoordPairwhere
CSSFloat: ToComputedValue<ComputedValue = CSSFloat>,
impl ToComputedValue for CoordPairwhere CSSFloat: ToComputedValue<ComputedValue = CSSFloat>,
§type ComputedValue = CoordPair
type ComputedValue = CoordPair
The computed value type we’re going to be converted to.
source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more
source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.source§impl ToResolvedValue for CoordPairwhere
CSSFloat: ToResolvedValue<ResolvedValue = CSSFloat>,
impl ToResolvedValue for CoordPairwhere CSSFloat: ToResolvedValue<ResolvedValue = CSSFloat>,
§type ResolvedValue = CoordPair
type ResolvedValue = CoordPair
The resolved value type we’re going to be converted to.
source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.
impl Copy for CoordPair
impl StructuralPartialEq for CoordPair
Auto Trait Implementations§
impl RefUnwindSafe for CoordPair
impl Send for CoordPair
impl Sync for CoordPair
impl Unpin for CoordPair
impl UnwindSafe for CoordPair
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
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert