Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Mar 30, 2024
1 parent 6328c60 commit 0b80137
Showing 1 changed file with 42 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,11 @@ where
String,
Self,
Self,
__Vec1End,
__vec1_end,
>
>,
{
Former2::_begin( None, Some( self ), __Vec1End )
Former2::_begin( None, Some( self ), __vec1_end )
}

pub fn vec_1( self ) ->
Expand All @@ -351,15 +351,15 @@ where
String,
Self,
Self,
__Vec1End,
__vec1_end,
>
{
self.vec_1_set::< former::VectorSubformer::
<
String,
Self,
Self,
__Vec1End,
__vec1_end,
> >()
}

Expand Down Expand Up @@ -406,14 +406,14 @@ where
}

// zzz : description
/// Return original former after subformer for vec1 is done.
pub struct __Vec1End;
/// Return original former after subformer for `vec_1` is done.
pub struct __vec1_end;
#[ automatically_derived ]
impl< Definition > former::FormingEnd
<
former::VectorDefinition< String, Struct1Former< Definition >, Struct1Former< Definition >, former::NoEnd >,
>
for __Vec1End
for __vec1_end
where
Definition : former::FormerDefinition,
Definition::Types : former::FormerDefinitionTypes
Expand All @@ -438,14 +438,14 @@ where
}

// zzz : description
/// Return original former after subformer for vec1 is done.
pub struct __HashMapEnd;
/// Return original former after subformer for `hashmap_string_1` is done.
pub struct __hashmap_strings_1_end;
#[ automatically_derived ]
impl< Definition > former::FormingEnd
<
former::HashMapDefinition< String, String, Struct1Former< Definition >, Struct1Former< Definition >, former::NoEnd >,
>
for __HashMapEnd
for __hashmap_strings_1_end
where
Definition : former::FormerDefinition,
Definition::Types : former::FormerDefinitionTypes
Expand All @@ -469,6 +469,38 @@ where
}
}

// zzz : description
/// Return original former after subformer for `hashset_string_1` is done.
pub struct __hashset_strings_1_end;
#[ automatically_derived ]
impl< Definition > former::FormingEnd
<
former::HashSetDefinition< String, Struct1Former< Definition >, Struct1Former< Definition >, former::NoEnd >,
>
for __hashset_strings_1_end
where
Definition : former::FormerDefinition,
Definition::Types : former::FormerDefinitionTypes
<
Storage = Struct1FormerStorage
>,
{
#[ inline( always ) ]
fn call( &self, storage : std::collections::HashSet< String >, super_former : Option< Struct1Former< Definition > > ) -> Struct1Former< Definition >
{
let mut super_former = super_former.unwrap();
if let Some( ref mut field ) = super_former.storage.hashset_strings_1
{
former::ContainerAssign::assign( field, storage );
}
else
{
super_former.storage.hashset_strings_1 = Some( storage );
}
super_former
}
}

// = end of generated

// include!( "./only_test/containers_with_subformer.rs" );

0 comments on commit 0b80137

Please sign in to comment.