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 returns MaybeCmp::Just(typeid).

  • TD_Opaque: the function always returns MaybeCmp::Nothing.

Required Associated Constants§

source

const UID: extern "C" fn() -> MaybeCmp<UTypeId>

the function.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> GetUTID<T> for TD_CanDowncast
where T: 'static,

source§

const UID: extern "C" fn() -> MaybeCmp<UTypeId> = _

source§

impl<T> GetUTID<T> for TD_Opaque

source§

const UID: extern "C" fn() -> MaybeCmp<UTypeId> = {std_types::utypeid::no_utypeid as extern "C" fn() -> sabi_types::maybe_cmp::MaybeCmp<std_types::utypeid::UTypeId>}