#[non_exhaustive]pub enum ObjectKind {
Rect,
Ellipse,
Point,
Polygon {
points: Vec<fvec2>,
},
Polyline {
points: Vec<fvec2>,
},
Text {
content: String,
pixelsize: i32,
wrap: bool,
color: Color,
bold: bool,
italic: bool,
underline: bool,
strikeout: bool,
kerning: bool,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for ObjectKind
impl Clone for ObjectKind
Source§fn clone(&self) -> ObjectKind
fn clone(&self) -> ObjectKind
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 moreAuto Trait Implementations§
impl Freeze for ObjectKind
impl RefUnwindSafe for ObjectKind
impl Send for ObjectKind
impl Sync for ObjectKind
impl Unpin for ObjectKind
impl UnwindSafe for ObjectKind
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