pub trait LayerDistribution {
type Data;
type Error;
// Required method
fn sample<R>(
&self,
map: &mut Map,
point: CoordPair,
rng: R,
) -> Result<Self::Data, Self::Error>
where R: Rng;
}
Required Associated Types§
Required Methods§
fn sample<R>(
&self,
map: &mut Map,
point: CoordPair,
rng: R,
) -> Result<Self::Data, Self::Error>where
R: Rng,
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.