Function il2_iltags::tags::assert_tag_id_and_type [−][src]
pub fn assert_tag_id_and_type<T: ILTag>(
tag_id: u64,
tag: &dyn ILTag
) -> Result<()>
Expand description
Verifies if a given ILTag
has the given tag Id and implements a specified
concrete type.
Arguments:
tag_id
: The expected tag id;
tag
: The tag to be downcast;
Returns: Returns:
Ok(())
: If the tag matches the criteria;Err(ErrorKind::UnexpectedTagType)
: If the tag does not match the criteria;