pub enum RadialShape {
Circle,
Ellipse,
CircleSized(LengthPercentage),
EllipseSized(LengthPercentage, LengthPercentage),
}Expand description
The shape component of a radial-gradient.
Variants§
Circle
circle — equal radius along both axes.
Ellipse
ellipse — independent horizontal and vertical radii.
CircleSized(LengthPercentage)
circle <length> — explicit circle radius.
EllipseSized(LengthPercentage, LengthPercentage)
ellipse <length-percentage> <length-percentage> —
explicit ellipse radii.
Trait Implementations§
Source§impl Clone for RadialShape
impl Clone for RadialShape
Source§fn clone(&self) -> RadialShape
fn clone(&self) -> RadialShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RadialShape
impl Debug for RadialShape
Source§impl PartialEq for RadialShape
impl PartialEq for RadialShape
Source§fn eq(&self, other: &RadialShape) -> bool
fn eq(&self, other: &RadialShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RadialShape
Auto Trait Implementations§
impl Freeze for RadialShape
impl RefUnwindSafe for RadialShape
impl Send for RadialShape
impl Sync for RadialShape
impl Unpin for RadialShape
impl UnsafeUnpin for RadialShape
impl UnwindSafe for RadialShape
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