Searched refs:Downcast (Results 1 – 6 of 6) sorted by relevance
175 pub trait Downcast: Any { interface190 impl<T: Any> Downcast for T {198 pub trait DowncastSync: Downcast + Send + Sync {252 $crate::Downcast::as_any(self).is::<__T>()261 Ok($crate::Downcast::into_any(self).downcast::<__T>().unwrap())273 Ok($crate::Downcast::into_any_rc(self).downcast::<__T>().unwrap())282 $crate::Downcast::as_any(self).downcast_ref::<__T>()288 $crate::Downcast::as_any_mut(self).downcast_mut::<__T>()492 use super::super::{Downcast, DowncastSync};583 trait Base: Downcast {}[all …]
32 To make a trait downcastable, make it extend either `downcast::Downcast` or40 trait Trait: Downcast {}49 trait TraitGeneric1<T>: Downcast {}53 trait TraitGeneric2: Downcast { type G; type H; }57 trait TraitGeneric3<T: Copy>: Downcast {63 trait TraitConcrete1<T: Copy>: Downcast {}66 trait TraitConcrete2<T: Copy>: Downcast { type H; }78 // To create a trait with downcasting methods, extend `Downcast` or `DowncastSync`126 use downcast_rs::Downcast;128 // To create a trait with downcasting methods, extend `Downcast` or `DowncastSync`[all …]
51 - Downcast functionality to downcast borrowed mutable and immutable trait
6 use downcast_rs::Downcast; in test()7 trait Trait: Downcast {} in test()
5 use downcast_rs::Downcast; in test()6 trait Trait: Downcast {} in test()
593 Downcast and damp; yet such wherein appeared