ServiceKey
struct · ferroui-dependency-injection · v0.5.0
struct ServiceKey
An arbitrary value key, compared by type and value. None represents an unkeyed service.
Members
new
fn new<T: Eq + Hash + fmt::Debug + 'static>(value: T) -> Self
ANY
const ANY: Self
Catch-all registration / query for all explicitly keyed registrations.
is_any
fn is_any(self: &Self) -> bool
downcast_ref
fn downcast_ref<T: 'static>(self: &Self) -> Option<&T>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedCloneFrom<&str>From<String>PartialEqEqHashDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.