[][src]Struct worldgen::world::tile::Constraint

pub struct Constraint { /* fields omitted */ }

A constraint that limits when a tile should be chosen for the generated world.

Implementations

impl Constraint[src]

pub fn new(
    nm: Box<dyn NoiseMapGeneratorBase>,
    constraint: ConstraintType
) -> Constraint
[src]

pub fn satisfied_by(
    &self,
    x: i64,
    y: i64,
    size: Size,
    chunk_x: i64,
    chunk_y: i64,
    nms: &mut HashMap<u64, Vec<Vec<f64>>>
) -> bool
[src]

Returns true if the given value would satisfy this constraint.

Auto Trait Implementations

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, 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.