Skip to main content

FromContext

Trait FromContext 

Source
pub trait FromContext: Sized {
    // Required method
    fn from_context(ctx: &Ctx) -> Result<Self>;
}
Expand description

Resolve a function argument from the render context.

Required Methods§

Source

fn from_context(ctx: &Ctx) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl FromContext for Params

Source§

fn from_context(ctx: &Ctx) -> Result<Self>

Source§

impl<T: Clone + Send + Sync + 'static> FromContext for Option<Extension<T>>

Source§

fn from_context(ctx: &Ctx) -> Result<Self>

Implementors§