pub trait DynCastExtHelper<T>where
T: ?Sized,{
type Target;
type Source;
type Config;
// Required method
fn _dyn_cast(self) -> Result<Self::Target, Self::Source>;
}Expand description
Used to implement DynCastExt.
Required Associated Types§
Sourcetype Config
type Config
The DynCastConfig that is used to preform the conversion.
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> DynCastExtHelper<T> for &'a Fwhere
T: 'static + ?Sized,
F: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + GetDynCastConfig<T> + ?Sized,
impl<'a, T, F> DynCastExtHelper<T> for &'a Fwhere
T: 'static + ?Sized,
F: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + GetDynCastConfig<T> + ?Sized,
Source§impl<'a, T, F> DynCastExtHelper<T> for &'a mut Fwhere
T: 'static + ?Sized,
F: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + GetDynCastConfig<T> + ?Sized,
impl<'a, T, F> DynCastExtHelper<T> for &'a mut Fwhere
T: 'static + ?Sized,
F: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + GetDynCastConfig<T> + ?Sized,
Source§impl<T, F> DynCastExtHelper<T> for Box<F>where
T: 'static + ?Sized,
F: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + GetDynCastConfig<T> + ?Sized,
Available on crate feature alloc only.
impl<T, F> DynCastExtHelper<T> for Box<F>where
T: 'static + ?Sized,
F: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + GetDynCastConfig<T> + ?Sized,
Available on crate feature
alloc only.Source§impl<T, F> DynCastExtHelper<T> for Rc<F>where
T: 'static + ?Sized,
F: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + GetDynCastConfig<T> + ?Sized,
Available on crate feature alloc only.
impl<T, F> DynCastExtHelper<T> for Rc<F>where
T: 'static + ?Sized,
F: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + GetDynCastConfig<T> + ?Sized,
Available on crate feature
alloc only.Implementors§
Source§impl<T, F> DynCastExtHelper<T> for Arc<F>where
T: 'static + ?Sized,
F: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + GetDynCastConfig<T> + ?Sized,
Available on crate feature alloc only.
impl<T, F> DynCastExtHelper<T> for Arc<F>where
T: 'static + ?Sized,
F: 'static + DynCast<<F as GetDynCastConfig<T>>::Config> + GetDynCastConfig<T> + ?Sized,
Available on crate feature
alloc only.