Skip to main content

RepresentationForScale

Trait RepresentationForScale 

Source
pub trait RepresentationForScale<S>: TimeRepresentation + Sealed
where S: Scale,
{ // Required methods fn try_from_time( time: Time<S>, ctx: &TimeContext, ) -> Result<Quantity<Self::Unit>, ConversionError>; fn try_into_time( raw: Quantity<Self::Unit>, ctx: &TimeContext, ) -> Result<Time<S>, ConversionError>; }
Expand description

Representation witness for scale S.

Required Methods§

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.

Implementors§