FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ServiceKey

    struct · ferroui-dependency-injection · v0.5.0

    struct ServiceKey
    

    An arbitrary value key, compared by type and value. None represents an unkeyed service.

    View source

    Members

    new

    fn new<T: Eq + Hash + fmt::Debug + 'static>(value: T) -> Self
    

    Source

    ANY

    const ANY: Self
    

    Catch-all registration / query for all explicitly keyed registrations.

    Source

    is_any

    fn is_any(self: &Self) -> bool
    

    Source

    downcast_ref

    fn downcast_ref<T: 'static>(self: &Self) -> Option<&T>
    

    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
    • From<&str>
    • From<String>
    • PartialEq
    • Eq
    • Hash
    • Debug

    Availability

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