pub enum FixedGradient {
Linear(FixedLinearGradient),
Radial(FixedRadialGradient),
}
Expand description
Any fixed gradient.
This is provided as a convenience, so that we can provide API that
accept both FixedLinearGradient
and FixedRadialGradient
.
You should not construct this type directly; rather construct one of those
types, both of which impl Into<FixedGradient>
.
Variants§
Trait Implementations§
Source§impl Clone for FixedGradient
impl Clone for FixedGradient
Source§fn clone(&self) -> FixedGradient
fn clone(&self) -> FixedGradient
Returns a duplicate 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 Debug for FixedGradient
impl Debug for FixedGradient
Source§impl From<FixedGradient> for PaintBrush
impl From<FixedGradient> for PaintBrush
Source§fn from(src: FixedGradient) -> PaintBrush
fn from(src: FixedGradient) -> PaintBrush
Converts to this type from the input type.
Source§impl From<FixedLinearGradient> for FixedGradient
impl From<FixedLinearGradient> for FixedGradient
Source§fn from(src: FixedLinearGradient) -> FixedGradient
fn from(src: FixedLinearGradient) -> FixedGradient
Converts to this type from the input type.
Source§impl From<FixedRadialGradient> for FixedGradient
impl From<FixedRadialGradient> for FixedGradient
Source§fn from(src: FixedRadialGradient) -> FixedGradient
fn from(src: FixedRadialGradient) -> FixedGradient
Converts to this type from the input type.
impl<P> IntoBrush<P> for FixedGradientwhere
P: RenderContext,
Auto Trait Implementations§
impl Freeze for FixedGradient
impl RefUnwindSafe for FixedGradient
impl Send for FixedGradient
impl Sync for FixedGradient
impl Unpin for FixedGradient
impl UnwindSafe for FixedGradient
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§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.