Enum piet::FixedGradient [−][src]
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
Linear(FixedLinearGradient)
A linear gradient.
Tuple Fields of Linear
Radial(FixedRadialGradient)
A radial gradient.
Tuple Fields of Radial
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
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
Mutably borrows from an owned value. Read more