pub trait NormalParam<S>: Sized {
// Required method
fn from_scalar(s: S) -> Self;
}Expand description
Helper trait so the enqueue_normal / log_normal paths can convert
the parameter scalar (always T::Scalar) into the T value
cudarc::curand::result::NormalFill::fill actually accepts.
For both f32 and f64, scalar == self, so this is identity.
Required Methods§
fn from_scalar(s: S) -> Self
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.