Trait ContextualTryFrom

Source
pub trait ContextualTryFrom<T>
where Self: Sized,
{ type Context; type Error; // Required method fn contextual_try_from( value: T, context: &Self::Context, ) -> Result<Self, Self::Error>; }

Required Associated Types§

Required Methods§

Source

fn contextual_try_from( value: T, context: &Self::Context, ) -> Result<Self, Self::Error>

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§