[][src]Struct wfc_tiled::ForceBorderForbid

pub struct ForceBorderForbid { /* fields omitted */ }

Used to prevent wrapping on the edges in the result

Examples

A fully functional example can be found under examples/anchor.rs

let pattern = TilePattern::from_csv(input_path, 
    NonZeroU32::new(pattern_size).unwrap(), 
    &[Orientation::Original]).expect("Error while creating pattern");
 
let forbid = ForceBorderForbid::new(&pattern, pattern_size);
let grid = pattern.run_collapse(output_size, attempts,
 WrapXY, forbid, &mut rand::thread_rng()).expect("Error in WFC");

Methods

impl ForceBorderForbid[src]

pub fn new(pattern: &TilePattern, pattern_size: u32) -> ForceBorderForbid[src]

Trait Implementations

impl ForbidPattern for ForceBorderForbid[src]

Auto Trait Implementations

Blanket Implementations

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 = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> SetParameter for T