Function il2_iltags::tags::tag_downcast_mut [−][src]
pub fn tag_downcast_mut<T: ILTag + Any>(tag: &mut dyn ILTag) -> Option<&mut T>
Expand description
Downcasts a ILTag
to its concrete type as a mutable reference.
Arguments:
tag
: The tag to be downcast;
Returns: An option with a reference to the concrete type or None if the conversion is not possible.