Trait abi_stable::type_level::downcasting::GetUTID
source · 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§
Object Safety§
This trait is not object safe.