pub trait Build<C> {
type Context;
// Required method
fn build(&self, ctx: &Self::Context) -> C;
}Expand description
Build a value using a context
This is similar to the Into trait but allows lossy
(rounding, clamping, quantization) and non-value-preserving conversions.
The only semantic constraint is that the conversion is obvious and unambiguous.