[][src]Struct world_map_gen::land::Land

pub struct Land<'a> {
    pub kind: LandKind,
    pub char: &'a str,
    pub color: ColorSpec,
    pub altitude: u8,
}

Represents one cell in a board

Fields

kind: LandKind

Kind of the cell like sea, plain, mountain, forest, ...

char: &'a str

Character to represent the cell. It is mainly used for rendering the board to terminal

color: ColorSpec

Color of the cell

altitude: u8

Altitude of the cell. It is 0 by default, and will be set on generating a map.

Trait Implementations

impl Default for Land<'static>[src]

impl<'a> Clone for Land<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq<Land<'a>> for Land<'a>[src]

impl<'a> Debug for Land<'a>[src]

impl<'a> Serialize for Land<'a>[src]

Auto Trait Implementations

impl<'a> Send for Land<'a>

impl<'a> Sync for Land<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]