pub struct CanvasDrawableShape {
pub shape: Shape,
pub stroke_style: String,
pub line_width: f32,
}
Expand description
internal type for using in javascript. convert from DrawlableShape
.
Fields§
§shape: Shape
§stroke_style: String
§line_width: f32
Trait Implementations§
source§impl Clone for CanvasDrawableShape
impl Clone for CanvasDrawableShape
source§fn clone(&self) -> CanvasDrawableShape
fn clone(&self) -> CanvasDrawableShape
Returns a copy 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 CanvasDrawableShape
impl Debug for CanvasDrawableShape
source§impl<'de> Deserialize<'de> for CanvasDrawableShape
impl<'de> Deserialize<'de> for CanvasDrawableShape
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 From<DrawableShape> for CanvasDrawableShape
impl From<DrawableShape> for CanvasDrawableShape
source§fn from(orig: DrawableShape) -> CanvasDrawableShape
fn from(orig: DrawableShape) -> CanvasDrawableShape
Converts to this type from the input type.
source§impl PartialEq for CanvasDrawableShape
impl PartialEq for CanvasDrawableShape
source§fn eq(&self, other: &CanvasDrawableShape) -> bool
fn eq(&self, other: &CanvasDrawableShape) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CanvasDrawableShape
impl Serialize for CanvasDrawableShape
impl StructuralPartialEq for CanvasDrawableShape
Auto Trait Implementations§
impl Freeze for CanvasDrawableShape
impl RefUnwindSafe for CanvasDrawableShape
impl Send for CanvasDrawableShape
impl Sync for CanvasDrawableShape
impl Unpin for CanvasDrawableShape
impl UnwindSafe for CanvasDrawableShape
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