pub struct DrawableShape { /* private fields */ }
Expand description
A subset of the HTML5 canvas properties
Implementations§
source§impl DrawableShape
impl DrawableShape
pub fn from_shape( shape: &Shape, stroke_style: &StrokeStyle, line_width: f32 ) -> Self
Trait Implementations§
source§impl Clone for DrawableShape
impl Clone for DrawableShape
source§fn clone(&self) -> DrawableShape
fn clone(&self) -> DrawableShape
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 DrawableShape
impl Debug for DrawableShape
source§impl<'de> Deserialize<'de> for DrawableShape
impl<'de> Deserialize<'de> for DrawableShape
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 DrawableShape
impl PartialEq for DrawableShape
source§fn eq(&self, other: &DrawableShape) -> bool
fn eq(&self, other: &DrawableShape) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DrawableShape
impl Serialize for DrawableShape
impl StructuralPartialEq for DrawableShape
Auto Trait Implementations§
impl Freeze for DrawableShape
impl RefUnwindSafe for DrawableShape
impl Send for DrawableShape
impl Sync for DrawableShape
impl Unpin for DrawableShape
impl UnwindSafe for DrawableShape
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