pub struct DefineMorphShape {
pub id: u16,
pub bounds: Rect,
pub morph_bounds: Rect,
pub edge_bounds: Option<Rect>,
pub morph_edge_bounds: Option<Rect>,
pub has_scaling_strokes: bool,
pub has_non_scaling_strokes: bool,
pub shape: MorphShape,
}
Fields§
§id: u16
§bounds: Rect
§morph_bounds: Rect
§edge_bounds: Option<Rect>
§morph_edge_bounds: Option<Rect>
§has_scaling_strokes: bool
§has_non_scaling_strokes: bool
§shape: MorphShape
Trait Implementations§
Source§impl Clone for DefineMorphShape
impl Clone for DefineMorphShape
Source§fn clone(&self) -> DefineMorphShape
fn clone(&self) -> DefineMorphShape
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 DefineMorphShape
impl Debug for DefineMorphShape
Source§impl<'de> Deserialize<'de> for DefineMorphShape
impl<'de> Deserialize<'de> for DefineMorphShape
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 DefineMorphShape
impl Hash for DefineMorphShape
Source§impl Ord for DefineMorphShape
impl Ord for DefineMorphShape
Source§fn cmp(&self, other: &DefineMorphShape) -> Ordering
fn cmp(&self, other: &DefineMorphShape) -> 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 DefineMorphShape
impl PartialEq for DefineMorphShape
Source§impl PartialOrd for DefineMorphShape
impl PartialOrd for DefineMorphShape
Source§impl Serialize for DefineMorphShape
impl Serialize for DefineMorphShape
impl Eq for DefineMorphShape
impl StructuralPartialEq for DefineMorphShape
Auto Trait Implementations§
impl Freeze for DefineMorphShape
impl RefUnwindSafe for DefineMorphShape
impl Send for DefineMorphShape
impl Sync for DefineMorphShape
impl Unpin for DefineMorphShape
impl UnwindSafe for DefineMorphShape
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