ProvideInner

Trait ProvideInner 

Source
pub trait ProvideInner<Context>: IsProviderFor<InnerComponent, Context, ()> {
    type Inner;

    // Required method
    fn inner(context: &Context) -> &Self::Inner;
}

Required Associated Types§

Required Methods§

Source

fn inner(context: &Context) -> &Self::Inner

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.

Implementations on Foreign Types§

Source§

impl<Context> ProvideInner<Context> for UseContext
where Context: HasInner,

Source§

type Inner = <Context as HasInner>::Inner

Source§

fn inner(context: &Context) -> &Self::Inner

Implementors§

Source§

impl<Component, Context> ProvideInner<Context> for Component
where Component: DelegateComponent<InnerComponent> + IsProviderFor<InnerComponent, Context, ()>, Component::Delegate: ProvideInner<Context>,