[][src]Trait conventus::AssembleFrom

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

Specifies the assembly of Self from a sequence of Ps.

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_from(
    parts: &mut Vec<P>
) -> Result<Self, AssembleFailure<Self::Error>>
[src]

Assembles parts into a Self.

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

Loading content...