[−][src]Struct dyn_context::example::ExampleContext
Implementations
impl Context
[src]
pub fn call<ContextCallReturnType>(
data: &mut Data,
display: &(dyn Display + 'static),
id: usize,
f: impl std_ops_FnOnce(&mut Self) -> ContextCallReturnType
) -> ContextCallReturnType
[src]
data: &mut Data,
display: &(dyn Display + 'static),
id: usize,
f: impl std_ops_FnOnce(&mut Self) -> ContextCallReturnType
) -> ContextCallReturnType
pub fn data(&self) -> &Data
[src]
pub fn data_mut(&mut self) -> &mut Data
[src]
pub fn display(&self) -> &(dyn Display + 'static)
[src]
pub fn id(&self) -> usize
[src]
Trait Implementations
impl Context for Context
[src]
fn get_raw(&self, ty: std_any_TypeId) -> Option<&dyn std_any_Any>
[src]
fn get_mut_raw(&mut self, ty: std_any_TypeId) -> Option<&mut dyn std_any_Any>
[src]
impl Send for Context
[src]
impl Sync for Context
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Context for T where
T: TrivialContext,
[src]
T: TrivialContext,
fn get_raw(&Self, TypeId) -> Option<&(dyn Any + 'static)>
[src]
fn get_mut_raw(&mut Self, TypeId) -> Option<&mut (dyn Any + 'static)>
[src]
impl<T> ContextExt for T where
T: Context + ?Sized,
[src]
T: Context + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,