[][src]Struct worldgen::noisemap::Size

pub struct Size {
    pub w: i64,
    pub h: i64,
}

Sets the size of the generated chunks.

The default values of this are 0, so if you do not set this then nothing will be generated. In a combination it needs to be set for only one of the member noisemaps, because the size will be set to whichever is largest when the combination is created.

Fields

w: i64h: i64

Implementations

impl Size[src]

pub fn of(w: i64, h: i64) -> Size[src]

Trait Implementations

impl Clone for Size[src]

impl Copy for Size[src]

impl Debug for Size[src]

impl Default for Size[src]

impl Eq for Size[src]

impl Ord for Size[src]

impl PartialEq<Size> for Size[src]

impl PartialOrd<Size> for Size[src]

impl Property for Size[src]

impl StructuralEq for Size[src]

impl StructuralPartialEq for Size[src]

Auto Trait Implementations

impl RefUnwindSafe for Size

impl Send for Size

impl Sync for Size

impl Unpin for Size

impl UnwindSafe for Size

Blanket Implementations

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

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

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

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.