pub trait Sample { type Value; // Required method fn sample(&self, rational: Rational) -> Self::Value; }
Types that can be sampled with a rational to produce a value.
Useful for representing continuous functions.
The type of value returned when sampled.
Sample self with rational to produce a value.
self
rational