Trait Construct

Source
pub trait Construct: ConstructItem {
    type Base: Construct;
    type Sequence;
    type Params: Singleton;
    type Design: Singleton;
    type Props<M: 'static>: Props<M>;
    type MixedParams: Extractable;
    type ExpandedParams: Extractable;
    type NestedSequence: Flattern;

    // Required method
    fn construct<P, const I: u8>(params: P) -> Self::NestedSequence
       where P: ExtractParams<I, Self::MixedParams, Value = <Self::MixedParams as Extractable>::Output, Rest = <<<Self::Base as Construct>::ExpandedParams as Extractable>::Input as AsParams>::Defined>;
}
Expand description

Main building block of constructivism

Required Associated Types§

Required Methods§

Source

fn construct<P, const I: u8>(params: P) -> Self::NestedSequence
where P: ExtractParams<I, Self::MixedParams, Value = <Self::MixedParams as Extractable>::Output, Rest = <<<Self::Base as Construct>::ExpandedParams as Extractable>::Input as AsParams>::Defined>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Construct for ()

Implementors§