noise_functions

Trait Sample3

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

Helper trait that provides sample3 for every Sample<3>.

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

Required Methods§

Source

fn sample3(&self, point: impl Into<[f32; 3]>) -> 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> Sample3 for N
where N: Sample<3>,