#[non_exhaustive]pub enum Item {
Rect(Overlay),
Sprite(Sprite),
Painted(PaintedSprite),
Gizmo(GizmoItem),
}Expand description
Something drawn on top of the cell grid, in console pixels. More kinds
may come: a match on it has a _ arm.
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.
Rect(Overlay)
A solid rectangle.
Sprite(Sprite)
A picture from an image file.
Painted(PaintedSprite)
A picture a skin painted at run time (ADR-0078), from the frame’s
PaintedTable.
Gizmo(GizmoItem)
A shape of the debug view (ADR-0085), always over the glyphs.
Implementations§
Trait Implementations§
impl Copy for Item
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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