Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Apr 22, 2024
1 parent 182f119 commit 52e6963
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions module/core/former/tests/inc/former_tests/subformer_shortcut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ where
Definition2,
>,
{

let on_end = | descriptor : TemplateParameterDescriptorFormerStorage, super_former : core::option::Option< Self > | -> Self
{
let mut super_former = super_former.unwrap();
Expand All @@ -83,27 +82,27 @@ where

// xxx2 : move to a trait and make easier to use subformer, trait with generic interface of a container should help

// #[ inline( always ) ]
// pub fn descriptor( self, name : &str ) ->
// TemplateParameterDescriptorFormer
// <
// TemplateParameterDescriptorFormerDefinition
// <
// Self,
// Self,
// impl TemplateParameterDescriptorSubformerEnd< Self >,
// // former::FormingEndClosure< TemplateParameterDescriptorFormerDefinitionTypes< Self, Self > >,
// >
// >
// {
// self.descriptor3::
// <
// TemplateParameterDescriptorFormer< _ >,
// _,
// _,
// >()
// .name( name )
// }
#[ inline( always ) ]
pub fn descriptor( self, name : &str ) ->
TemplateParameterDescriptorFormer
<
TemplateParameterDescriptorFormerDefinition
<
Self,
Self,
impl TemplateParameterDescriptorSubformerEnd< Self >,
// former::FormingEndClosure< TemplateParameterDescriptorFormerDefinitionTypes< Self, Self > >,
>
>
{
self.descriptor3::
<
TemplateParameterDescriptorFormer< _ >,
_,
_,
>()
.name( name )
}

}

Expand Down

0 comments on commit 52e6963

Please sign in to comment.