pub enum RadialGradientCover {
Stretch,
Shortest,
Longest,
}Expand description
How a radial gradient should cover its shape if the aspect ratio of the bounding box != 1.
Variants§
Stretch
Stretch the gradient. This is the default behavior.
Shortest
Set the color stop at 1.0 to render at the end of the shortest side, in a way that shows
the entire gradient.
Longest
Set the color stop at 1.0 to render at the end of the longest side, in a way that cuts
off the gradient.
Trait Implementations§
Source§impl Clone for RadialGradientCover
impl Clone for RadialGradientCover
Source§fn clone(&self) -> RadialGradientCover
fn clone(&self) -> RadialGradientCover
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RadialGradientCover
impl Debug for RadialGradientCover
Source§impl Default for RadialGradientCover
impl Default for RadialGradientCover
Source§impl PartialEq for RadialGradientCover
impl PartialEq for RadialGradientCover
impl Copy for RadialGradientCover
impl Eq for RadialGradientCover
impl StructuralPartialEq for RadialGradientCover
Auto Trait Implementations§
impl Freeze for RadialGradientCover
impl RefUnwindSafe for RadialGradientCover
impl Send for RadialGradientCover
impl Sync for RadialGradientCover
impl Unpin for RadialGradientCover
impl UnwindSafe for RadialGradientCover
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more