pub enum EncodedKind {
Linear(LinearKind),
Radial(RadialKind),
Sweep(SweepKind),
}Expand description
A kind of encoded gradient.
Variants§
Linear(LinearKind)
An encoded linear gradient.
Radial(RadialKind)
An encoded radial gradient.
Sweep(SweepKind)
An encoded sweep gradient.
Implementations§
Source§impl EncodedKind
impl EncodedKind
Sourcefn has_undefined(&self) -> bool
fn has_undefined(&self) -> bool
Whether the gradient is undefined at any location.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncodedKind
impl RefUnwindSafe for EncodedKind
impl Send for EncodedKind
impl Sync for EncodedKind
impl Unpin for EncodedKind
impl UnsafeUnpin for EncodedKind
impl UnwindSafe for EncodedKind
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