pub trait DynCastExtAdvHelper<F, T>{
type Target;
type Source;
// Required method
fn _dyn_cast(self) -> Result<Self::Target, Self::Source>;
}Expand description
Used to implement DynCastExt.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<'a, T, F, A> DynCastExtAdvHelper<F, T> for &'a Awhere
T: 'static + ?Sized,
F: 'static + GetDynCastConfig<T> + ?Sized,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + ?Sized,
impl<'a, T, F, A> DynCastExtAdvHelper<F, T> for &'a Awhere
T: 'static + ?Sized,
F: 'static + GetDynCastConfig<T> + ?Sized,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + ?Sized,
Source§impl<'a, T, F, A> DynCastExtAdvHelper<F, T> for &'a mut Awhere
T: 'static + ?Sized,
F: 'static + GetDynCastConfig<T> + ?Sized,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + ?Sized,
impl<'a, T, F, A> DynCastExtAdvHelper<F, T> for &'a mut Awhere
T: 'static + ?Sized,
F: 'static + GetDynCastConfig<T> + ?Sized,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + ?Sized,
Source§impl<T, F, A> DynCastExtAdvHelper<F, T> for Box<A>where
T: 'static + ?Sized,
F: 'static + GetDynCastConfig<T> + ?Sized,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + ?Sized,
Available on crate feature alloc only.
impl<T, F, A> DynCastExtAdvHelper<F, T> for Box<A>where
T: 'static + ?Sized,
F: 'static + GetDynCastConfig<T> + ?Sized,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + ?Sized,
Available on crate feature
alloc only.Source§impl<T, F, A> DynCastExtAdvHelper<F, T> for Rc<A>where
T: 'static + ?Sized,
F: 'static + GetDynCastConfig<T> + ?Sized,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + ?Sized,
Available on crate feature alloc only.
impl<T, F, A> DynCastExtAdvHelper<F, T> for Rc<A>where
T: 'static + ?Sized,
F: 'static + GetDynCastConfig<T> + ?Sized,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + ?Sized,
Available on crate feature
alloc only.