Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Mar 24, 2024
1 parent c7f2f18 commit 1e98874
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions module/core/former/src/axiomatic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ pub trait FormerDefinition : Sized
/// # Parameters
/// - `Storage`: The type of the container being processed.
/// - `Context`: The type of the context that might be altered or returned upon completion.

// xxx2 : contunue. try
// pub trait FormingEnd< Definition : FormerDefinitionTypes > : Default
pub trait FormingEnd< Definition : FormerDefinitionTypes >
{
/// Called at the end of the subforming process to return the modified or original context.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,13 @@ fn custom_definition()

//

let got = the_module::ContainerSubformer::< String, Return13 >::new()
.push( "a" )
.push( "b" )
.form();
let exp = 13;
a_id!( got, exp );
// xxx : make it working?
// let got = the_module::ContainerSubformer::< String, Return13 >::new()
// .push( "a" )
// .push( "b" )
// .form();
// let exp = 13;
// a_id!( got, exp );

//

Expand Down

0 comments on commit 1e98874

Please sign in to comment.