FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Dependency

    struct · ferroui-dependency-injection · v0.5.0

    struct Dependency
    

    A constructor parameter's call site, used without running user code during validation.

    View source

    Members

    identifier

    identifier: ServiceIdentifier
    

    Source

    kind

    kind: DependencyKind
    

    Source

    lookup_mode

    lookup_mode: ServiceKeyLookupMode
    

    Source

    required

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

    Source

    keyed

    fn keyed<S: ?Sized + 'static>(key: Option<ServiceKey>) -> Self
    

    Source

    inherited

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

    Source

    optional

    fn optional(self: Self) -> Self
    

    Source

    enumerable

    fn enumerable(self: Self) -> Self
    

    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
    • Debug

    Availability

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