pub enum GradientType {
LinearGradient,
RepeatingLinearGradient,
RadialGradient,
RepeatingRadialGradient,
ConicGradient,
RepeatingConicGradient,
}Expand description
Internal enum to help dispatch parsing logic within the parse_gradient function.
Variants§
LinearGradient
RepeatingLinearGradient
RadialGradient
RepeatingRadialGradient
ConicGradient
RepeatingConicGradient
Implementations§
Source§impl GradientType
impl GradientType
pub const fn get_extend_mode(&self) -> ExtendMode
Trait Implementations§
Source§impl Clone for GradientType
impl Clone for GradientType
Source§fn clone(&self) -> GradientType
fn clone(&self) -> GradientType
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 GradientType
impl Debug for GradientType
Source§impl PartialEq for GradientType
impl PartialEq for GradientType
impl Copy for GradientType
impl Eq for GradientType
impl StructuralPartialEq for GradientType
Auto Trait Implementations§
impl Freeze for GradientType
impl RefUnwindSafe for GradientType
impl Send for GradientType
impl Sync for GradientType
impl Unpin for GradientType
impl UnwindSafe for GradientType
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