noise_functions

Trait Sample4

Source
pub trait Sample4: Sample<4> {
    // Required method
    fn sample4(&self, point: impl Into<[f32; 4]>) -> f32;
}
Expand description

Helper trait that provides sample4 for every Sample<4>.

It also works for any impl Into<[f32; 4]>.

Required Methods§

Source

fn sample4(&self, point: impl Into<[f32; 4]>) -> f32

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<N> Sample4 for N
where N: Sample<4>,