pub enum ObjectShape {
Rect {
width: f32,
height: f32,
},
Ellipse {
width: f32,
height: f32,
},
Polyline {
points: Vec<(f32, f32)>,
},
Polygon {
points: Vec<(f32, f32)>,
},
Point(f32, f32),
Text {},
}Variants§
Trait Implementations§
Source§impl Clone for ObjectShape
impl Clone for ObjectShape
Source§fn clone(&self) -> ObjectShape
fn clone(&self) -> ObjectShape
Returns a duplicate 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 ObjectShape
impl Debug for ObjectShape
Source§impl PartialEq for ObjectShape
impl PartialEq for ObjectShape
impl StructuralPartialEq for ObjectShape
Auto Trait Implementations§
impl Freeze for ObjectShape
impl RefUnwindSafe for ObjectShape
impl Send for ObjectShape
impl Sync for ObjectShape
impl Unpin for ObjectShape
impl UnwindSafe for ObjectShape
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