pub struct DefineShape {
pub id: u16,
pub bounds: Rect,
pub edge_bounds: Option<Rect>,
pub has_fill_winding: bool,
pub has_non_scaling_strokes: bool,
pub has_scaling_strokes: bool,
pub shape: Shape,
}
Fields§
§id: u16
§bounds: Rect
§edge_bounds: Option<Rect>
§has_fill_winding: bool
§has_non_scaling_strokes: bool
§has_scaling_strokes: bool
§shape: Shape
Trait Implementations§
Source§impl Clone for DefineShape
impl Clone for DefineShape
Source§fn clone(&self) -> DefineShape
fn clone(&self) -> DefineShape
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 DefineShape
impl Debug for DefineShape
Source§impl<'de> Deserialize<'de> for DefineShape
impl<'de> Deserialize<'de> for DefineShape
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 Hash for DefineShape
impl Hash for DefineShape
Source§impl Ord for DefineShape
impl Ord for DefineShape
Source§fn cmp(&self, other: &DefineShape) -> Ordering
fn cmp(&self, other: &DefineShape) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DefineShape
impl PartialEq for DefineShape
Source§impl PartialOrd for DefineShape
impl PartialOrd for DefineShape
Source§impl Serialize for DefineShape
impl Serialize for DefineShape
impl Eq for DefineShape
impl StructuralPartialEq for DefineShape
Auto Trait Implementations§
impl Freeze for DefineShape
impl RefUnwindSafe for DefineShape
impl Send for DefineShape
impl Sync for DefineShape
impl Unpin for DefineShape
impl UnwindSafe for DefineShape
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