pub enum Style {
Color {
color: Color,
},
Hierarchical {
level: usize,
},
Material {
material: Material,
},
}Expand description
A color or pattern for filling or stroking.
Variants§
Implementations§
Source§impl Style
impl Style
pub const PRIMARY: Self
pub const SECONDARY: Self
pub const TERTIARY: Self
pub const QUATERNARY: Self
pub const QUINARY: Self
pub const fn color(color: Color) -> Self
pub const fn hierarchical(level: usize) -> Self
pub const fn material(material: Material) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Style
impl<'de> Deserialize<'de> for Style
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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