pub struct StrokeParam {
pub color: Box<ColorParam>,
pub width: Box<NumberParam>,
}Fields§
§color: Box<ColorParam>§width: Box<NumberParam>Implementations§
Source§impl StrokeParam
impl StrokeParam
pub fn new(color: ColorParam, width: NumberParam) -> StrokeParam
Trait Implementations§
Source§impl Clone for StrokeParam
impl Clone for StrokeParam
Source§fn clone(&self) -> StrokeParam
fn clone(&self) -> StrokeParam
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 StrokeParam
impl Debug for StrokeParam
Source§impl Default for StrokeParam
impl Default for StrokeParam
Source§fn default() -> StrokeParam
fn default() -> StrokeParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StrokeParam
impl<'de> Deserialize<'de> for StrokeParam
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 StrokeParam
impl PartialEq for StrokeParam
Source§fn eq(&self, other: &StrokeParam) -> bool
fn eq(&self, other: &StrokeParam) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StrokeParam
impl Serialize for StrokeParam
impl StructuralPartialEq for StrokeParam
Auto Trait Implementations§
impl Freeze for StrokeParam
impl RefUnwindSafe for StrokeParam
impl Send for StrokeParam
impl Sync for StrokeParam
impl Unpin for StrokeParam
impl UnsafeUnpin for StrokeParam
impl UnwindSafe for StrokeParam
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