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 dirctly; rather construct one of those
types, both of which impl Into<FixedGradient>
.
Variants§
Trait Implementations§
§impl Clone for FixedGradient
impl Clone for FixedGradient
§fn clone(&self) -> FixedGradient
fn clone(&self) -> FixedGradient
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 more§impl Debug for FixedGradient
impl Debug for FixedGradient
§impl<T> From<FixedGradient> for BackgroundBrush<T>
impl<T> From<FixedGradient> for BackgroundBrush<T>
§fn from(src: FixedGradient) -> BackgroundBrush<T>
fn from(src: FixedGradient) -> BackgroundBrush<T>
Converts to this type from the input type.
§impl From<FixedGradient> for PaintBrush
impl From<FixedGradient> for PaintBrush
§fn from(src: FixedGradient) -> PaintBrush
fn from(src: FixedGradient) -> PaintBrush
Converts to this type from the input type.
§impl From<FixedLinearGradient> for FixedGradient
impl From<FixedLinearGradient> for FixedGradient
§fn from(src: FixedLinearGradient) -> FixedGradient
fn from(src: FixedLinearGradient) -> FixedGradient
Converts to this type from the input type.
§impl From<FixedRadialGradient> for FixedGradient
impl From<FixedRadialGradient> for FixedGradient
§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 RefUnwindSafe for FixedGradient
impl Send for FixedGradient
impl Sync for FixedGradient
impl Unpin for FixedGradient
impl UnwindSafe for FixedGradient
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.