[−][src]Macro downcast::impl_downcast
Implements Downcast
for your trait-object-type.
ⓘThis example is not tested
impl_downcast!(Foo); impl_downcast!(<B> Foo<B> where B: Bar); impl_downcast!(<B> Foo<Bar = B>);
expands to
ⓘThis example is not tested
impl<T> Downcast<T> for Foo where T: Any {} impl<T, B> Downcast<T> for Foo<B> where T: Any, B: Bar {} impl<T, B> Downcast<T> for Foo<Bar = B> where T: Any {}