TypeEntry
struct · ferroui-static-view-locator · v0.5.0
struct TypeEntry<V: 'static>
An entry of a TypeTable: the type, as the function that gives its TypeId
(TypeId::of::<T>), and the value of the type.
Members
new
const fn new(type_id: fn() -> TypeId, value: V) -> Self
The entry of the type whose id type_id gives (TypeId::of::<T>).
type_id
fn type_id(self: &Self) -> TypeId
The id of the type.
value
fn value(self: &Self) -> &V
The value of the type.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.