#[non_exhaustive]pub struct MapFormat<'a> {
pub looks: &'a [&'a str],
pub max_size: usize,
}Expand description
What a game’s maps may be: the tile looks there are, and how big a map
may be. Build it with MapFormat::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.looks: &'a [&'a str]The sets of terrain pictures a map may name in its look.
DEFAULT_TILES should be one of them.
max_size: usizeLargest width and height, in tiles.
Implementations§
Trait Implementations§
impl<'a> Copy for MapFormat<'a>
impl<'a> Eq for MapFormat<'a>
impl<'a> StructuralPartialEq for MapFormat<'a>
Auto Trait Implementations§
impl<'a> Freeze for MapFormat<'a>
impl<'a> RefUnwindSafe for MapFormat<'a>
impl<'a> Send for MapFormat<'a>
impl<'a> Sync for MapFormat<'a>
impl<'a> Unpin for MapFormat<'a>
impl<'a> UnsafeUnpin for MapFormat<'a>
impl<'a> UnwindSafe for MapFormat<'a>
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