Skip to main content

ContextualTryInto

Trait ContextualTryInto 

Source
pub trait ContextualTryInto<T> {
    type Context;
    type Error;

    // Required method
    fn contextual_try_into(
        self,
        context: &Self::Context,
    ) -> Result<T, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn contextual_try_into(self, context: &Self::Context) -> Result<T, Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§