Trait former::FormingEnd
source · pub trait FormingEnd<Definition>where
Definition: FormerDefinitionTypes,{
// Required method
fn call(
&self,
storage: <Definition as FormerDefinitionTypes>::Storage,
context: Option<<Definition as FormerDefinitionTypes>::Context>
) -> <Definition as FormerDefinitionTypes>::Formed;
}Expand description
Defines a handler for the end of a subforming process, enabling the return of the original context.
This trait is designed to be flexible, allowing for various end-of-forming behaviors in builder patterns. Implementors can define how to transform or pass through the context during the forming process’s completion.
§Parameters
Storage: The type of the collection being processed.Context: The type of the context that might be altered or returned upon completion.