Trait reflect_steroids::CastMut
source · [−]pub trait CastMut<'a, T: ?Sized>: Sized + 'a {
fn try_cast_mut_with_registry<P: DynamicTrait + ?Sized>(
self,
registry: &TypeRegistry
) -> Result<&'a mut P, TypeError>;
fn try_cast_mut<P: DynamicTrait + ?Sized>(
self
) -> Result<&'a mut P, TypeError> { ... }
}
Expand description
Mutable reference casting interface.
Required Methods
fn try_cast_mut_with_registry<P: DynamicTrait + ?Sized>(
self,
registry: &TypeRegistry
) -> Result<&'a mut P, TypeError>
fn try_cast_mut_with_registry<P: DynamicTrait + ?Sized>(
self,
registry: &TypeRegistry
) -> Result<&'a mut P, TypeError>
Try casting self
using type information from registry
.
Provided Methods
fn try_cast_mut<P: DynamicTrait + ?Sized>(self) -> Result<&'a mut P, TypeError>
fn try_cast_mut<P: DynamicTrait + ?Sized>(self) -> Result<&'a mut P, TypeError>
Try casting self
using the current global type registry (see
TypeRegistryExt::set_current()
).