pub trait Consumer: Sized {
type Repr;
type Target;
// Required methods
fn init(&self, value: Self::Repr) -> Self::Target;
fn consume(&self, target: &mut Self::Target, value: Self::Repr);
}Expand description
Responsible for consuming the scalar value and modifying itself accordingly.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".