pub trait GetUTID<T> {
const UID: extern "C" fn() -> MaybeCmp<UTypeId>;
}
Expand description
Gets a function optionally returning the UTypeId
of T
.
Whether the function returns MaybeCmp::Just(typeid)
is determined by implementors:
-
TD_CanDowncast
: the function always returnsMaybeCmp::Just(typeid)
. -
TD_Opaque
: the function always returnsMaybeCmp::Nothing
.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.