#[repr(C, u8)]pub enum GenericEllipse<NonNegativeLengthPercentage> {
Radii(NonNegativeLengthPercentage, NonNegativeLengthPercentage),
Extent(ShapeExtent),
}
Expand description
An ellipse shape.
Variants§
Radii(NonNegativeLengthPercentage, NonNegativeLengthPercentage)
An ellipse pair of radii.
Extent(ShapeExtent)
An ellipse extent.
Trait Implementations§
source§impl<NonNegativeLengthPercentage: Clone> Clone for GenericEllipse<NonNegativeLengthPercentage>
impl<NonNegativeLengthPercentage: Clone> Clone for GenericEllipse<NonNegativeLengthPercentage>
source§fn clone(&self) -> GenericEllipse<NonNegativeLengthPercentage>
fn clone(&self) -> GenericEllipse<NonNegativeLengthPercentage>
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<NonNegativeLengthPercentage: Debug> Debug for GenericEllipse<NonNegativeLengthPercentage>
impl<NonNegativeLengthPercentage: Debug> Debug for GenericEllipse<NonNegativeLengthPercentage>
source§impl<NonNegativeLengthPercentage> MallocSizeOf for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: MallocSizeOf,
impl<NonNegativeLengthPercentage> MallocSizeOf for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: MallocSizeOf,
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<NonNegativeLengthPercentage: PartialEq> PartialEq for GenericEllipse<NonNegativeLengthPercentage>
impl<NonNegativeLengthPercentage: PartialEq> PartialEq for GenericEllipse<NonNegativeLengthPercentage>
source§fn eq(&self, other: &GenericEllipse<NonNegativeLengthPercentage>) -> bool
fn eq(&self, other: &GenericEllipse<NonNegativeLengthPercentage>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl<NonNegativeLengthPercentage> ToComputedValue for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: ToComputedValue,
impl<NonNegativeLengthPercentage> ToComputedValue for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: ToComputedValue,
source§type ComputedValue = GenericEllipse<<NonNegativeLengthPercentage as ToComputedValue>::ComputedValue>
type ComputedValue = GenericEllipse<<NonNegativeLengthPercentage 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<NonNegativeLengthPercentage> ToCss for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: ToCss,
impl<NonNegativeLengthPercentage> ToCss for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: ToCss,
source§impl<NonNegativeLengthPercentage> ToResolvedValue for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: ToResolvedValue,
impl<NonNegativeLengthPercentage> ToResolvedValue for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: ToResolvedValue,
source§type ResolvedValue = GenericEllipse<<NonNegativeLengthPercentage as ToResolvedValue>::ResolvedValue>
type ResolvedValue = GenericEllipse<<NonNegativeLengthPercentage 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<NonNegativeLengthPercentage> ToShmem for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: ToShmem,
impl<NonNegativeLengthPercentage> ToShmem for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: ToShmem,
impl<NonNegativeLengthPercentage: Copy> Copy for GenericEllipse<NonNegativeLengthPercentage>
impl<NonNegativeLengthPercentage> StructuralPartialEq for GenericEllipse<NonNegativeLengthPercentage>
Auto Trait Implementations§
impl<NonNegativeLengthPercentage> Freeze for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: Freeze,
impl<NonNegativeLengthPercentage> RefUnwindSafe for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: RefUnwindSafe,
impl<NonNegativeLengthPercentage> Send for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: Send,
impl<NonNegativeLengthPercentage> Sync for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: Sync,
impl<NonNegativeLengthPercentage> Unpin for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: Unpin,
impl<NonNegativeLengthPercentage> UnwindSafe for GenericEllipse<NonNegativeLengthPercentage>where
NonNegativeLengthPercentage: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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