pub struct NoUnits;Expand description
Paints no units: a map shown with nobody on it, or the ground alone.
Trait Implementations§
impl Copy for NoUnits
impl Eq for NoUnits
impl StructuralPartialEq for NoUnits
Source§impl<U> UnitPainter<U> for NoUnits
impl<U> UnitPainter<U> for NoUnits
Source§fn paint(&self, _: &MapScene<U>, _: &Grid, _: &mut GlyphBuffer)
fn paint(&self, _: &MapScene<U>, _: &Grid, _: &mut GlyphBuffer)
The units of
scene on grid’s tiles: after the path’s line (on
the glyph skin, after the ground), before its arrowhead and the
cursor.Source§fn paint_under(
&self,
_scene: &MapScene<U>,
_grid: &Grid,
_buf: &mut GlyphBuffer,
)
fn paint_under( &self, _scene: &MapScene<U>, _grid: &Grid, _buf: &mut GlyphBuffer, )
What lies on the ground under the units (a light square under a
unit picked out): painted after the ground and the ranges, before
the path’s line. Nothing unless the painter says.
Source§fn paint_over(&self, _scene: &MapScene<U>, _grid: &Grid, _buf: &mut GlyphBuffer)
fn paint_over(&self, _scene: &MapScene<U>, _grid: &Grid, _buf: &mut GlyphBuffer)
What lies over the units and under the cursor (marks at the edges
the map goes on past,
MapScene::more): painted after the units
and the path, before the cursor and the threat arrows. Nothing
unless the painter says.Auto Trait Implementations§
impl Freeze for NoUnits
impl RefUnwindSafe for NoUnits
impl Send for NoUnits
impl Sync for NoUnits
impl Unpin for NoUnits
impl UnsafeUnpin for NoUnits
impl UnwindSafe for NoUnits
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