Trait reflect_steroids::Cast
source · [−]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
Required Methods
fn try_cast_with_registry(
self,
registry: &TypeRegistry
) -> Result<Self::Target, TypeError>
fn try_cast_with_registry(
self,
registry: &TypeRegistry
) -> Result<Self::Target, TypeError>
Try casting self
using type information from registry
.