[−][src]Trait conventus::AssembleInto
Specifies the assembly of C
from a sequence of Self
s.
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.
Required methods
pub fn assemble_into(
parts: &mut Vec<Self>
) -> Result<C, AssembleFailure<Self::Error>>
[src]
parts: &mut Vec<Self>
) -> Result<C, AssembleFailure<Self::Error>>
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.
Implementors
impl<P, C> AssembleInto<C> for P where
C: AssembleFrom<P>,
[src]
C: AssembleFrom<P>,
For every C
that implements AssembleFrom<P>
, P
SHALL implement AssembleInto<S>
.
type Error = <C as AssembleFrom<Self>>::Error
pub fn assemble_into(
parts: &mut Vec<Self>
) -> Result<C, AssembleFailure<Self::Error>>
[src]
parts: &mut Vec<Self>
) -> Result<C, AssembleFailure<Self::Error>>