[][src]Trait tfsi::construct::Construct

pub trait Construct<'p, 'd, Idx> {
    type Requirement: Require<'p, 'd>;
    fn construct(
        args: &<Self::Requirement as Require<'p, 'd>>::Provider
    ) -> Self; }

A Construct is a strategy to instantiate Self using the provider satisfying the Self::Requirement.

A type may have several Construct strategies: they need to have different Idx.

Associated Types

type Requirement: Require<'p, 'd>[src]

The Require necessary to instantiate Self via this Construct

Loading content...

Required methods

fn construct(args: &<Self::Requirement as Require<'p, 'd>>::Provider) -> Self[src]

Construct a Self: args — a provider satisfying the Self::Requirement.

Loading content...

Implementors

Loading content...