pub enum PaintPrimitive {
Fill {
rect: Rect,
color: [u8; 4],
radius: f32,
},
Stroke {
rect: Rect,
color: [u8; 4],
width: f32,
radius: f32,
},
Text {
rect: Rect,
color: [u8; 4],
text: String,
font_family: String,
font_size: f32,
},
Asset {
rect: Rect,
asset: AssetBinding,
},
}Variants§
Trait Implementations§
Source§impl Clone for PaintPrimitive
impl Clone for PaintPrimitive
Source§fn clone(&self) -> PaintPrimitive
fn clone(&self) -> PaintPrimitive
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PaintPrimitive
impl Debug for PaintPrimitive
Source§impl<'de> Deserialize<'de> for PaintPrimitive
impl<'de> Deserialize<'de> for PaintPrimitive
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
Source§impl PartialEq for PaintPrimitive
impl PartialEq for PaintPrimitive
Source§impl Serialize for PaintPrimitive
impl Serialize for PaintPrimitive
impl StructuralPartialEq for PaintPrimitive
Auto Trait Implementations§
impl Freeze for PaintPrimitive
impl RefUnwindSafe for PaintPrimitive
impl Send for PaintPrimitive
impl Sync for PaintPrimitive
impl Unpin for PaintPrimitive
impl UnsafeUnpin for PaintPrimitive
impl UnwindSafe for PaintPrimitive
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