[][src]Trait conventus::AssembleInto

pub trait AssembleInto<C> where
    Self: Sized
{ type Error; pub fn assemble_into(
        parts: &mut Vec<Self>
    ) -> Result<C, AssembleFailure<Self::Error>>; }

Specifies the assembly of C from a sequence of Selfs.

Associated Types

type Error[src]

Describes an error with the parts.

This SHALL describe all cases that prevent a successful assembly other than the case where more parts are needed.

Loading content...

Required methods

pub fn assemble_into(
    parts: &mut Vec<Self>
) -> Result<C, AssembleFailure<Self::Error>>
[src]

Assembles parts into a C.

If assembly is successful, all items used in the assembly SHALL be removed from parts.

Errors

If assembly fails, the cause of the failure SHALL be thrown and parts SHALL NOT be modified.

Loading content...

Implementors

impl<P, C> AssembleInto<C> for P where
    C: AssembleFrom<P>, 
[src]

For every C that implements AssembleFrom<P>, P SHALL implement AssembleInto<S>.

type Error = <C as AssembleFrom<Self>>::Error

Loading content...