Enum buffer_graphics_lib::shapes::collection::shape_box::ShapeBox
source · pub enum ShapeBox {
Line(Drawable<Line>),
Rect(Drawable<Rect>),
Triangle(Drawable<Triangle>),
Circle(Drawable<Circle>),
Ellipse(Drawable<Ellipse>),
Polygon(Drawable<Polygon>),
}
Expand description
Represents one of the shapes from graphics-shapes so they be used in a collection with generic or type issues
Variants§
Line(Drawable<Line>)
Rect(Drawable<Rect>)
Triangle(Drawable<Triangle>)
Circle(Drawable<Circle>)
Ellipse(Drawable<Ellipse>)
Polygon(Drawable<Polygon>)
Implementations§
Trait Implementations§
source§impl FromDrawable<Circle> for ShapeBox
impl FromDrawable<Circle> for ShapeBox
source§impl FromDrawable<Ellipse> for ShapeBox
impl FromDrawable<Ellipse> for ShapeBox
source§impl FromDrawable<Line> for ShapeBox
impl FromDrawable<Line> for ShapeBox
source§impl FromDrawable<Polygon> for ShapeBox
impl FromDrawable<Polygon> for ShapeBox
source§impl FromDrawable<Rect> for ShapeBox
impl FromDrawable<Rect> for ShapeBox
source§impl FromDrawable<Triangle> for ShapeBox
impl FromDrawable<Triangle> for ShapeBox
source§impl PartialEq<ShapeBox> for ShapeBox
impl PartialEq<ShapeBox> for ShapeBox
impl StructuralPartialEq for ShapeBox
Auto Trait Implementations§
impl RefUnwindSafe for ShapeBox
impl Send for ShapeBox
impl Sync for ShapeBox
impl Unpin for ShapeBox
impl UnwindSafe for ShapeBox
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