[−][src]Struct wfc_tiled::ForceBorderForbid
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
impl Send for ForceBorderForbid
impl Sync for ForceBorderForbid
impl Unpin for ForceBorderForbid
impl UnwindSafe for ForceBorderForbid
impl RefUnwindSafe for ForceBorderForbid
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,