Trait arret_runtime::boxed::DistinctTagged [−][src]
Indicates that this boxed struct does not share type tags with unrelated types
For example, Num
is DistinctTagged
because it only shares type tags with Any
, Float
and Int
which are all either subtypes or supertypes. As a counterexample, Vector<Str>
is
not because it shares a type tag with Vector<Sym>
.
In mathematical terms this can be thought of as the struct being injective to the type tag
Required methods
fn has_tag(type_tag: TypeTag) -> bool
[src][−]
Returns if the passed type tag corresponds to this type