#[repr(C, u8)]pub enum GenericOffsetPathFunction<Shapes, RayFunction, U> {
Ray(RayFunction),
Url(U),
Shape(Shapes),
}
Expand description
The
https://drafts.fxtf.org/motion-1/#typedef-offset-path
Variants§
Ray(RayFunction)
ray() function, which defines a path in the polar coordinate system. Use Box<> to make sure the size of offset-path is not too large.
Url(U)
A URL reference to an SVG shape element. If the URL does not reference a shape element, this behaves as path(“m 0 0”) instead.
Shape(Shapes)
The
Trait Implementations§
source§impl<Shapes, RayFunction, U> Animate for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> Animate for GenericOffsetPathFunction<Shapes, RayFunction, U>
source§impl<Shapes: Clone, RayFunction: Clone, U: Clone> Clone for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes: Clone, RayFunction: Clone, U: Clone> Clone for GenericOffsetPathFunction<Shapes, RayFunction, U>
source§fn clone(&self) -> GenericOffsetPathFunction<Shapes, RayFunction, U>
fn clone(&self) -> GenericOffsetPathFunction<Shapes, RayFunction, U>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Shapes, RayFunction, U> ComputeSquaredDistance for GenericOffsetPathFunction<Shapes, RayFunction, U>where
Shapes: ComputeSquaredDistance,
RayFunction: ComputeSquaredDistance,
impl<Shapes, RayFunction, U> ComputeSquaredDistance for GenericOffsetPathFunction<Shapes, RayFunction, U>where
Shapes: ComputeSquaredDistance,
RayFunction: ComputeSquaredDistance,
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<Shapes: Debug, RayFunction: Debug, U: Debug> Debug for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes: Debug, RayFunction: Debug, U: Debug> Debug for GenericOffsetPathFunction<Shapes, RayFunction, U>
source§impl<'de, Shapes, RayFunction, U> Deserialize<'de> for GenericOffsetPathFunction<Shapes, RayFunction, U>where
Shapes: Deserialize<'de>,
RayFunction: Deserialize<'de>,
impl<'de, Shapes, RayFunction, U> Deserialize<'de> for GenericOffsetPathFunction<Shapes, RayFunction, U>where
Shapes: Deserialize<'de>,
RayFunction: Deserialize<'de>,
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<Shapes, RayFunction, U> MallocSizeOf for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> MallocSizeOf for GenericOffsetPathFunction<Shapes, RayFunction, U>
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<Shapes: PartialEq, RayFunction: PartialEq, U: PartialEq> PartialEq for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes: PartialEq, RayFunction: PartialEq, U: PartialEq> PartialEq for GenericOffsetPathFunction<Shapes, RayFunction, U>
source§fn eq(&self, other: &GenericOffsetPathFunction<Shapes, RayFunction, U>) -> bool
fn eq(&self, other: &GenericOffsetPathFunction<Shapes, RayFunction, U>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Shapes, RayFunction, U> Serialize for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> Serialize for GenericOffsetPathFunction<Shapes, RayFunction, U>
source§impl<Shapes, RayFunction, U> SpecifiedValueInfo for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> SpecifiedValueInfo for GenericOffsetPathFunction<Shapes, RayFunction, U>
source§const SUPPORTED_TYPES: u8 = _
const SUPPORTED_TYPES: u8 = _
Supported CssTypes by the given value type. Read more
source§impl<Shapes, RayFunction, U> ToAnimatedValue for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> ToAnimatedValue for GenericOffsetPathFunction<Shapes, RayFunction, U>
§type AnimatedValue = GenericOffsetPathFunction<<Shapes as ToAnimatedValue>::AnimatedValue, <RayFunction as ToAnimatedValue>::AnimatedValue, <U as ToAnimatedValue>::AnimatedValue>
type AnimatedValue = GenericOffsetPathFunction<<Shapes as ToAnimatedValue>::AnimatedValue, <RayFunction as ToAnimatedValue>::AnimatedValue, <U as ToAnimatedValue>::AnimatedValue>
The type of the animated value.
source§fn from_animated_value(from: Self::AnimatedValue) -> Self
fn from_animated_value(from: Self::AnimatedValue) -> Self
Converts back an animated value into a computed value.
source§fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
Converts this value to an animated value.
source§impl<Shapes, RayFunction, U> ToComputedValue for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> ToComputedValue for GenericOffsetPathFunction<Shapes, RayFunction, U>
§type ComputedValue = GenericOffsetPathFunction<<Shapes as ToComputedValue>::ComputedValue, <RayFunction as ToComputedValue>::ComputedValue, <U as ToComputedValue>::ComputedValue>
type ComputedValue = GenericOffsetPathFunction<<Shapes as ToComputedValue>::ComputedValue, <RayFunction as ToComputedValue>::ComputedValue, <U as ToComputedValue>::ComputedValue>
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<Shapes, RayFunction, U> ToCss for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> ToCss for GenericOffsetPathFunction<Shapes, RayFunction, U>
source§impl<Shapes, RayFunction, U> ToResolvedValue for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> ToResolvedValue for GenericOffsetPathFunction<Shapes, RayFunction, U>
§type ResolvedValue = GenericOffsetPathFunction<<Shapes as ToResolvedValue>::ResolvedValue, <RayFunction as ToResolvedValue>::ResolvedValue, <U as ToResolvedValue>::ResolvedValue>
type ResolvedValue = GenericOffsetPathFunction<<Shapes as ToResolvedValue>::ResolvedValue, <RayFunction as ToResolvedValue>::ResolvedValue, <U as ToResolvedValue>::ResolvedValue>
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.
source§impl<Shapes, RayFunction, U> ToShmem for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> ToShmem for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> StructuralPartialEq for GenericOffsetPathFunction<Shapes, RayFunction, U>
Auto Trait Implementations§
impl<Shapes, RayFunction, U> Freeze for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> RefUnwindSafe for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> Send for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> Sync for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> Unpin for GenericOffsetPathFunction<Shapes, RayFunction, U>
impl<Shapes, RayFunction, U> UnwindSafe for GenericOffsetPathFunction<Shapes, RayFunction, U>
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
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