Enum piet::FixedGradient
source · 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§
source§impl Clone for FixedGradient
impl Clone for FixedGradient
source§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 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.