#[non_exhaustive]pub struct MapColors {
pub path: &'static str,
pub cursor: &'static str,
pub threat: &'static str,
}Expand description
The palette’s names of the colors a grid skin paints the path, the
cursor and the threat arrows in: what the game’s palette calls them.
The ranges are painted in the colors of their own names; a threat’s
marks are the engine’s highlight color, and every dark edge (and what
the cursor fades toward) its background color. Build it with
MapColors::new (ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: &'static strThe path’s line and arrowhead.
cursor: &'static strThe cursor.
threat: &'static strThe threat arrows: the color of whoever threatens.
Implementations§
Trait Implementations§
impl Copy for MapColors
impl Eq for MapColors
impl StructuralPartialEq for MapColors
Auto Trait Implementations§
impl Freeze for MapColors
impl RefUnwindSafe for MapColors
impl Send for MapColors
impl Sync for MapColors
impl Unpin for MapColors
impl UnsafeUnpin for MapColors
impl UnwindSafe for MapColors
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