[−][src]Struct oxygengine_procedural::wave_function_collapse::WaveFunctionCollapseModel
Implementations
impl<T> WaveFunctionCollapseModel<T> where
T: Clone + Send + Sync + PartialEq,
[src]
T: Clone + Send + Sync + PartialEq,
pub fn from_patterns(
patterns: Vec<(Grid2d<T>, usize)>
) -> Result<Self, WaveFunctionCollapseError>
[src]
patterns: Vec<(Grid2d<T>, usize)>
) -> Result<Self, WaveFunctionCollapseError>
pub fn from_views(
sample_size: (usize, usize),
seamless: bool,
views: Vec<Grid2d<Option<T>>>
) -> Result<Self, WaveFunctionCollapseError>
[src]
sample_size: (usize, usize),
seamless: bool,
views: Vec<Grid2d<Option<T>>>
) -> Result<Self, WaveFunctionCollapseError>
pub fn patterns(&self) -> &[(Grid2d<T>, Scalar)]
[src]
[(pattern, weight)]
pub fn neighbors(&self) -> &[HashSet<(usize, Direction)>]
[src]
[[pattern, direction]]
Trait Implementations
impl<T: Clone> Clone for WaveFunctionCollapseModel<T> where
T: Clone + Send + Sync + PartialEq,
[src]
T: Clone + Send + Sync + PartialEq,
fn clone(&self) -> WaveFunctionCollapseModel<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for WaveFunctionCollapseModel<T> where
T: Clone + Send + Sync + PartialEq,
[src]
T: Clone + Send + Sync + PartialEq,
impl<T: Default> Default for WaveFunctionCollapseModel<T> where
T: Clone + Send + Sync + PartialEq,
[src]
T: Clone + Send + Sync + PartialEq,
fn default() -> WaveFunctionCollapseModel<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for WaveFunctionCollapseModel<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for WaveFunctionCollapseModel<T>
impl<T> Sync for WaveFunctionCollapseModel<T>
impl<T> Unpin for WaveFunctionCollapseModel<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for WaveFunctionCollapseModel<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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>,