Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Apr 30, 2024
1 parent 4d53820 commit 810a1de
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ where
.name( name )
}

#[ inline( always ) ]
pub fn _child( self ) ->
ChildAsSubformer< Self, impl ChildAsSubformerEnd< Self > >
{
self._children_add_subformer
::< < Child as former::EntityToFormer< _ > >::Former, _, >()
}

}

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ where
.name( name )
}

#[ inline( always ) ]
pub fn _child( self ) ->
ChildAsSubformer< Self, impl ChildAsSubformerEnd< Self > >
{
self._children_add_subformer
::< < Child as former::EntityToFormer< _ > >::Former, _, >()
}

}

/// Handles the completion of and element of subformer's container.
Expand Down
8 changes: 4 additions & 4 deletions module/core/former/tests/inc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ mod former_tests
#[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ]
mod subformer_custom_experimental;

// #[ cfg( any( not( feature = "no_std" ) ) ) ]
// mod subformer_subform;
// #[ cfg( any( not( feature = "no_std" ) ) ) ]
// mod subformer_subform_manual;
#[ cfg( any( not( feature = "no_std" ) ) ) ]
mod subformer_subform;
#[ cfg( any( not( feature = "no_std" ) ) ) ]
mod subformer_subform_manual;

#[ cfg( any( not( feature = "no_std" ) ) ) ]
mod subformer_implicit_container;
Expand Down

0 comments on commit 810a1de

Please sign in to comment.