FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ObjectFactory

    struct · ferroui-dependency-injection · v0.5.0

    struct ObjectFactory<S: ?Sized>
    

    View source

    Members

    new

    fn new(dependencies: Vec<Dependency>, factory: impl Fn(&dyn IServiceProvider, Option<&ServiceKey>) -> ServiceResult<Rc<S>> + 'static) -> 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

    Availability

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