FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ServiceType

    struct · ferroui-splat · v0.5.0

    struct ServiceType
    

    The type of a service, the key of its registrations (the Type of a registration upstream, typeof(T) of the generic forms).

    It is the TypeId of the service type, which may be unsized (dyn IViewLocator), with the name of the type for messages. Two values are equal when their types are.

    View source

    Members

    of

    fn of<S: ?Sized + 'static>() -> Self
    

    The service type S.

    Source

    id

    fn id(self: &Self) -> TypeId
    

    The identifier of the type.

    Source

    name

    fn name(self: &Self) -> &'static str
    

    The name of the type, as std::any::type_name gives it.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone
    • Copy
    • PartialEq
    • Eq
    • Hash
    • Debug

    Availability

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