pub trait ContextConversionTarget<S: Scale>: Sealed {
type Output;
// Required method
fn convert_with(
src: Time<S>,
ctx: &TimeContext,
) -> Result<Self::Output, ConversionError>;
}Expand description
Unified context-backed conversion target for Time<S>::to_with::<T>(&ctx).
Required Associated Types§
Required Methods§
fn convert_with( src: Time<S>, ctx: &TimeContext, ) -> Result<Self::Output, ConversionError>
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.