[][src]Struct cast_trait_object::ConcreteDynCastConfig

pub struct ConcreteDynCastConfig<S: ?Sized, T: ?Sized> { /* fields omitted */ }

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]

type Target = T

The trait we are casting to.

type Source = S

The trait we are casting from and that we want back if the cast failed.

Auto Trait Implementations

impl<S: ?Sized, T: ?Sized> Send for ConcreteDynCastConfig<S, T> where
    S: Send,
    T: Send

impl<S: ?Sized, T: ?Sized> Sync for ConcreteDynCastConfig<S, T> where
    S: Sync,
    T: Sync

impl<S: ?Sized, T: ?Sized> Unpin for ConcreteDynCastConfig<S, T> where
    S: Unpin,
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<A> DynCastExt for A[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.