pub enum Object {
Rect {
x: f32,
y: f32,
width: f32,
height: f32,
visible: bool,
},
Ellipse {
x: f32,
y: f32,
width: f32,
height: f32,
visible: bool,
},
Polyline {
x: f32,
y: f32,
points: Vec<(f32, f32)>,
visible: bool,
},
Polygon {
x: f32,
y: f32,
points: Vec<(f32, f32)>,
visible: bool,
},
}
Variants
Rect
Fields
Ellipse
Fields
Polyline
Fields
Polygon
Fields
Trait Implementations
fn eq(&self, __arg_0: &Object) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Object) -> bool
This method tests for !=
.
Formats the value using the given formatter.