Trait AsContext

Source
pub trait AsContext {
    type Data;

    // Required method
    fn as_context(&self) -> &Store<Self::Data>;
}

Required Associated Types§

Required Methods§

Source

fn as_context(&self) -> &Store<Self::Data>

Implementations on Foreign Types§

Source§

impl<'a, T: AsContext> AsContext for &'a T

Source§

type Data = <T as AsContext>::Data

Source§

fn as_context(&self) -> &Store<Self::Data>

Source§

impl<'a, T: AsContext> AsContext for &'a mut T

Source§

type Data = <T as AsContext>::Data

Source§

fn as_context(&self) -> &Store<Self::Data>

Implementors§

Source§

impl<T> AsContext for Caller<T>

Source§

type Data = T

Source§

impl<T> AsContext for Store<T>

Source§

type Data = T