[−][src]Struct wfc_image::ImagePatterns
Methods
impl ImagePatterns
[src]
pub fn new(
image: &DynamicImage,
pattern_size: NonZeroU32,
orientations: &[Orientation]
) -> Self
[src]
image: &DynamicImage,
pattern_size: NonZeroU32,
orientations: &[Orientation]
) -> Self
pub fn set_empty_colour(&mut self, empty_colour: Rgba<u8>)
[src]
pub fn image_from_wave(&self, wave: &Wave) -> DynamicImage
[src]
pub fn weighted_average_colour<'a>(&self, cell: &'a WaveCellRef<'a>) -> Rgba<u8>
[src]
pub fn grid(&self) -> &Grid<Rgba<u8>>
[src]
pub fn id_grid(&self) -> Grid<OrientationTable<PatternId>>
[src]
pub fn id_grid_original_orientation(&self) -> Grid<PatternId>
[src]
pub fn pattern(&self, pattern_id: PatternId) -> &Pattern
[src]
pub fn pattern_mut(&mut self, pattern_id: PatternId) -> &mut Pattern
[src]
pub fn global_stats(&self) -> GlobalStats
[src]
pub fn collapse_wave_retrying<W, F, RT, R>(
&self,
output_size: Size,
wrap: W,
forbid: F,
retry: RT,
rng: &mut R
) -> RT::Return where
W: Wrap,
F: ForbidPattern + Send + Sync + Clone,
RT: Retry,
R: Rng + Send + Sync + Clone,
[src]
&self,
output_size: Size,
wrap: W,
forbid: F,
retry: RT,
rng: &mut R
) -> RT::Return where
W: Wrap,
F: ForbidPattern + Send + Sync + Clone,
RT: Retry,
R: Rng + Send + Sync + Clone,
Auto Trait Implementations
impl RefUnwindSafe for ImagePatterns
impl Send for ImagePatterns
impl Sync for ImagePatterns
impl Unpin for ImagePatterns
impl UnwindSafe for ImagePatterns
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> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,