pub trait Cast<P: ?Sized>: Sized {
    type Target;

    fn try_cast_with_registry(
        self,
        registry: &TypeRegistry
    ) -> Result<Self::Target, TypeError>; fn try_cast(self) -> Result<Self::Target, TypeError> { ... } }
Expand description

Trait object casting interface.

Required Associated Types

The target pointer type for this cast.

Required Methods

Try casting self using type information from registry.

Provided Methods

Try casting self using the current global type registry (see TypeRegistryExt::set_current()).

Implementations on Foreign Types

Implementors