Home
last modified time | relevance | path

Searched refs:Downcast (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/downcast-rs/src/
Dlib.rs175 pub trait Downcast: Any { interface
190 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 …]
/external/rust/crates/downcast-rs/
DREADME.md32 To make a trait downcastable, make it extend either `downcast::Downcast` or
40 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 …]
DCHANGELOG.md51 - Downcast functionality to downcast borrowed mutable and immutable trait
/external/rust/crates/downcast-rs/tests/
Dimport_via_macro_use.rs6 use downcast_rs::Downcast; in test()
7 trait Trait: Downcast {} in test()
Duse_via_namespace.rs5 use downcast_rs::Downcast; in test()
6 trait Trait: Downcast {} in test()
/external/brotli/tests/testdata/
Dplrabn12.txt593 Downcast and damp; yet such wherein appeared