Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Apr 13, 2024
1 parent 0ffc821 commit b19d139
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion module/core/former/tests/inc/former_tests/subformer_shortcut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ where

}

// pub struct Struct1FormerDefinition< Context = (), Formed = Struct1, End = former::ReturnPreformed >
// pub struct Struct1FormerDefinitionTypes< Context = (), Formed = Struct1 >

// impl< Context, End > TemplateParametersFormer< Context, End >
// where
// End : former::FormingEnd< TemplateParameters, Context >,
Expand Down Expand Up @@ -110,8 +113,29 @@ where

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

// pub struct Struct1FormerDefinition< Context = (), Formed = Struct1, End = former::ReturnPreformed >
// xxx : uncomment
// #[ inline( always ) ]
#[ inline( always ) ]
pub fn descriptor( self, name: &str ) ->
TemplateParameterDescriptorFormer
<
TemplateParameterDescriptorFormerDefinition
<
Self,
Self,
former::FormingEndClosure< TemplateParameterDescriptorFormerDefinitionTypes< Self, Self > >
>
>
{
self.descriptor3::
<
TemplateParameterDescriptorFormer< _ >,
_,
_, // Define or adjust this type to meet the constraints
>()
.descriptor( name )
}

// pub fn descriptor( self, name : &str ) ->
// // TemplateParameterDescriptorFormer< Self, impl former::FormingEnd< TemplateParameterDescriptor, Self > >
// TemplateParameterDescriptorFormer< TemplateParameterDescriptorFormerDefinition >
Expand Down

0 comments on commit b19d139

Please sign in to comment.