FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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>).

    Source

    type_id

    fn type_id(self: &Self) -> TypeId
    

    The id of the type.

    Source

    value

    fn value(self: &Self) -> &V
    

    The value of the type.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.