Skip to main content

Build

Trait Build 

Source
pub trait Build: Plan {
    type Error;
    type Store<'d>
       where Self: 'd;

    // Required methods
    fn try_store<'d>(&self) -> Result<Self::Store<'d>, Self::Error>
       where Self: 'd;
    fn try_build<'p, 'd>(
        self,
        store: &'p mut Self::Store<'d>,
        ctx: Context<'_, 'd>,
    ) -> Result<Self::Output<'p, 'd>, Self::Error>
       where Self: 'd,
             'd: 'p;
}
Expand description

Fallibly constructs driver-domain storage through the non-submitting Context.

Required Associated Types§

Source

type Error

Source

type Store<'d>
where Self: 'd,

Required Methods§

Source

fn try_store<'d>(&self) -> Result<Self::Store<'d>, Self::Error>
where Self: 'd,

Source

fn try_build<'p, 'd>( self, store: &'p mut Self::Store<'d>, ctx: Context<'_, 'd>, ) -> Result<Self::Output<'p, 'd>, Self::Error>
where Self: 'd, 'd: 'p,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A: Build, B: Build> Build for (A, B)

Source§

type Error = BranchError<<A as Build>::Error, <B as Build>::Error>

Source§

type Store<'d> = (<A as Build>::Store<'d>, <B as Build>::Store<'d>)
where Self: 'd,

Source§

fn try_store<'d>(&self) -> Result<Self::Store<'d>, Self::Error>
where Self: 'd,

Source§

fn try_build<'p, 'd>( self, store: &'p mut Self::Store<'d>, ctx: Context<'_, 'd>, ) -> Result<Self::Output<'p, 'd>, Self::Error>
where Self: 'd, 'd: 'p,

Implementors§

Source§

impl<F, T> Build for With<F, T>
where F: Build,

Source§

type Error = <F as Build>::Error

Source§

type Store<'d> = <F as Build>::Store<'d>
where Self: 'd,