[−][src]Struct cast_trait_object::ConcreteDynCastConfig
This is an implementation detail for the macros that implement DynCast
.
Used to create a specify a "config" type when only the source and target traits are known.
This type implements DynCastConfig
and there is a blanket implementation
of DynCast
so that if DynCast
is implemented for
ConcreteDynCastConfig<dyn Source, dyn Target>
then DynCast
is implemented
for all "config" types that implement
DynCastConfig<Source = dyn Source, Target = dyn Target>
.
Trait Implementations
impl<S: Debug + ?Sized, T: Debug + ?Sized> Debug for ConcreteDynCastConfig<S, T>
[src]
impl<S: ?Sized, T: ?Sized> DynCastConfig for ConcreteDynCastConfig<S, T>
[src]
Auto Trait Implementations
impl<S: ?Sized, T: ?Sized> Send for ConcreteDynCastConfig<S, T> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<S: ?Sized, T: ?Sized> Sync for ConcreteDynCastConfig<S, T> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<S: ?Sized, T: ?Sized> Unpin for ConcreteDynCastConfig<S, T> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<A> DynCastExt for A
[src]
pub fn dyn_cast<T>(
Self
) -> Result<<A as DynCastExtHelper<T>>::Target, <A as DynCastExtHelper<T>>::Source> where
A: DynCastExtHelper<T>,
T: ?Sized,
[src]
Self
) -> Result<<A as DynCastExtHelper<T>>::Target, <A as DynCastExtHelper<T>>::Source> where
A: DynCastExtHelper<T>,
T: ?Sized,
pub fn dyn_upcast<T>(Self) -> <A as DynCastExtAdvHelper<T, T>>::Target where
A: DynCastExtAdvHelper<T, T, Source = <A as DynCastExtAdvHelper<T, T>>::Target>,
T: ?Sized,
[src]
A: DynCastExtAdvHelper<T, T, Source = <A as DynCastExtAdvHelper<T, T>>::Target>,
T: ?Sized,
pub fn dyn_cast_adv<F, T>(
Self
) -> Result<<A as DynCastExtAdvHelper<F, T>>::Target, <A as DynCastExtAdvHelper<F, T>>::Source> where
A: DynCastExtAdvHelper<F, T>,
F: ?Sized,
T: ?Sized,
[src]
Self
) -> Result<<A as DynCastExtAdvHelper<F, T>>::Target, <A as DynCastExtAdvHelper<F, T>>::Source> where
A: DynCastExtAdvHelper<F, T>,
F: ?Sized,
T: ?Sized,
pub fn dyn_cast_with_config<C>(
Self
) -> Result<<A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Target, <A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Source> where
A: DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>,
C: DynCastConfig,
[src]
Self
) -> Result<<A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Target, <A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Source> where
A: DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>,
C: DynCastConfig,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,