[−][src]Trait cast_trait_object::DynCastExtAdvHelper
Used to implement DynCastExt
.
Associated Types
type Target
[src]
The wanted trait object that is returned if the cast succeeded.
type Source
[src]
The original trait object that is returned if the cast failed.
Required methods
pub fn _dyn_cast(self) -> Result<Self::Target, Self::Source>
[src]
This method is used to cast from one trait object type to another.
Implementations on Foreign Types
impl<'a, T: ?Sized, F: ?Sized, A: ?Sized> DynCastExtAdvHelper<F, T> for Box<A> where
T: 'static,
F: 'static + GetDynCastConfig<T>,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config>,
[src]
T: 'static,
F: 'static + GetDynCastConfig<T>,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config>,
This is supported on crate feature
alloc
only.type Target = Box<T>
type Source = Box<F>
pub fn _dyn_cast(self) -> Result<Self::Target, Self::Source>
[src]
impl<'a, T: ?Sized, F: ?Sized, A: ?Sized> DynCastExtAdvHelper<F, T> for Rc<A> where
T: 'static,
F: 'static + GetDynCastConfig<T>,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config>,
[src]
T: 'static,
F: 'static + GetDynCastConfig<T>,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config>,
This is supported on crate feature
alloc
only.type Target = Rc<T>
type Source = Rc<F>
pub fn _dyn_cast(self) -> Result<Self::Target, Self::Source>
[src]
impl<'a, T: ?Sized, F: ?Sized, A: ?Sized> DynCastExtAdvHelper<F, T> for Arc<A> where
T: 'static,
F: 'static + GetDynCastConfig<T>,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config>,
[src]
T: 'static,
F: 'static + GetDynCastConfig<T>,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config>,
This is supported on crate feature
alloc
only.type Target = Arc<T>
type Source = Arc<F>
pub fn _dyn_cast(self) -> Result<Self::Target, Self::Source>
[src]
Implementors
impl<'a, T: ?Sized, F: ?Sized, A: ?Sized> DynCastExtAdvHelper<F, T> for &'a A where
T: 'static,
F: 'static + GetDynCastConfig<T>,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config>,
[src]
T: 'static,
F: 'static + GetDynCastConfig<T>,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config>,
type Target = &'a T
type Source = &'a F
pub fn _dyn_cast(self) -> Result<Self::Target, Self::Source>
[src]
impl<'a, T: ?Sized, F: ?Sized, A: ?Sized> DynCastExtAdvHelper<F, T> for &'a mut A where
T: 'static,
F: 'static + GetDynCastConfig<T>,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config>,
[src]
T: 'static,
F: 'static + GetDynCastConfig<T>,
A: 'static + DynCast<<F as GetDynCastConfig<T>>::Config>,