Function il2_iltags::tags::tag_downcast_ref[][src]

pub fn tag_downcast_ref<T: ILTag + Any>(tag: &dyn ILTag) -> Option<&T>
Expand description

Downcasts a ILTag to its concrete type.

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.