pub trait Unit<T> {
type Output;
// Required method
fn as_unit(&self, unit: T) -> Self::Output
where Self: Sized;
}
Expand description
Trait to provide access to unit conversions
pub trait Unit<T> {
type Output;
// Required method
fn as_unit(&self, unit: T) -> Self::Output
where Self: Sized;
}
Trait to provide access to unit conversions