Trait downcast::Any
[−]
[src]
FIXME(https://github.com/rust-lang/rust/issues/27745) remove this
Provided Methods
Trait Implementations
impl<_T: Any> Downcast<_T> for Any where
_T: Any, [src]
impl<_T: Any> Downcast<_T> for Any where
_T: Any, fn is_type(&self) -> bool[src]
fn is_type(&self) -> boolunsafe fn downcast_ref_unchecked(&self) -> &T[src]
unsafe fn downcast_ref_unchecked(&self) -> &Tfn downcast_ref(&self) -> Result<&T, TypeMismatch>[src]
fn downcast_ref(&self) -> Result<&T, TypeMismatch>unsafe fn downcast_mut_unchecked(&mut self) -> &mut T[src]
unsafe fn downcast_mut_unchecked(&mut self) -> &mut Tfn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>[src]
fn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>unsafe fn downcast_unchecked(self: Box<Self>) -> Box<T>[src]
unsafe fn downcast_unchecked(self: Box<Self>) -> Box<T>fn downcast(self: Box<Self>) -> Result<Box<T>, DowncastError<Box<Self>>>[src]
fn downcast(self: Box<Self>) -> Result<Box<T>, DowncastError<Box<Self>>>impl<_T: Any> Downcast<_T> for Any + Send where
_T: Any, [src]
impl<_T: Any> Downcast<_T> for Any + Send where
_T: Any, fn is_type(&self) -> bool[src]
fn is_type(&self) -> boolunsafe fn downcast_ref_unchecked(&self) -> &T[src]
unsafe fn downcast_ref_unchecked(&self) -> &Tfn downcast_ref(&self) -> Result<&T, TypeMismatch>[src]
fn downcast_ref(&self) -> Result<&T, TypeMismatch>unsafe fn downcast_mut_unchecked(&mut self) -> &mut T[src]
unsafe fn downcast_mut_unchecked(&mut self) -> &mut Tfn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>[src]
fn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>unsafe fn downcast_unchecked(self: Box<Self>) -> Box<T>[src]
unsafe fn downcast_unchecked(self: Box<Self>) -> Box<T>fn downcast(self: Box<Self>) -> Result<Box<T>, DowncastError<Box<Self>>>[src]
fn downcast(self: Box<Self>) -> Result<Box<T>, DowncastError<Box<Self>>>impl<_T: Any> Downcast<_T> for Any + Sync where
_T: Any, [src]
impl<_T: Any> Downcast<_T> for Any + Sync where
_T: Any, fn is_type(&self) -> bool[src]
fn is_type(&self) -> boolunsafe fn downcast_ref_unchecked(&self) -> &T[src]
unsafe fn downcast_ref_unchecked(&self) -> &Tfn downcast_ref(&self) -> Result<&T, TypeMismatch>[src]
fn downcast_ref(&self) -> Result<&T, TypeMismatch>unsafe fn downcast_mut_unchecked(&mut self) -> &mut T[src]
unsafe fn downcast_mut_unchecked(&mut self) -> &mut Tfn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>[src]
fn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>unsafe fn downcast_unchecked(self: Box<Self>) -> Box<T>[src]
unsafe fn downcast_unchecked(self: Box<Self>) -> Box<T>fn downcast(self: Box<Self>) -> Result<Box<T>, DowncastError<Box<Self>>>[src]
fn downcast(self: Box<Self>) -> Result<Box<T>, DowncastError<Box<Self>>>impl<_T: Any> Downcast<_T> for Any + Send + Sync where
_T: Any, [src]
impl<_T: Any> Downcast<_T> for Any + Send + Sync where
_T: Any, fn is_type(&self) -> bool[src]
fn is_type(&self) -> boolunsafe fn downcast_ref_unchecked(&self) -> &T[src]
unsafe fn downcast_ref_unchecked(&self) -> &Tfn downcast_ref(&self) -> Result<&T, TypeMismatch>[src]
fn downcast_ref(&self) -> Result<&T, TypeMismatch>unsafe fn downcast_mut_unchecked(&mut self) -> &mut T[src]
unsafe fn downcast_mut_unchecked(&mut self) -> &mut Tfn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>[src]
fn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>unsafe fn downcast_unchecked(self: Box<Self>) -> Box<T>[src]
unsafe fn downcast_unchecked(self: Box<Self>) -> Box<T>fn downcast(self: Box<Self>) -> Result<Box<T>, DowncastError<Box<Self>>>[src]
fn downcast(self: Box<Self>) -> Result<Box<T>, DowncastError<Box<Self>>>