Trait ioc::DefaultBase [] [src]

pub trait DefaultBase: Any { }

Methods

impl DefaultBase

fn is<__T>(&self) -> bool where __T: Any, Self: Downcast<__T>

unsafe fn unchecked_downcast_ref<__T>(&self) -> &__T where __T: Any, Self: Downcast<__T>

fn downcast_ref<__T>(&self) -> Option<&__T> where __T: Any, Self: Downcast<__T>

unsafe fn unchecked_downcast_mut<__T>(&mut self) -> &mut __T where __T: Any, Self: Downcast<__T>

fn downcast_mut<__T>(&mut self) -> Option<&mut __T> where __T: Any, Self: Downcast<__T>

fn downcast_boxed<__T>(self: Box<Self>) -> Result<Box<__T>, Box<Self>> where __T: Any, Self: Downcast<__T>

Trait Implementations

impl<__T> Downcast<__T> for DefaultBase where __T: Any

fn is_type(&self) -> bool

unsafe fn unchecked_downcast_ref(&self) -> &__T

fn downcast_ref(&self) -> Option<&__T>

unsafe fn unchecked_downcast_mut(&mut self) -> &mut __T

fn downcast_mut(&mut self) -> Option<&mut __T>

fn downcast_boxed(self: Box<Self>) -> Result<Box<__T>, Box<Self>>

Implementors