From b3f750d051f008f0ca84f3218cb8c6452f22715b Mon Sep 17 00:00:00 2001 From: wandalen Date: Tue, 2 Apr 2024 12:45:48 +0300 Subject: [PATCH] former : experimenting --- module/core/former/src/hash_set.rs | 3 +- .../a_containers_with_subformer_manual.rs | 37 +------------------ 2 files changed, 3 insertions(+), 37 deletions(-) diff --git a/module/core/former/src/hash_set.rs b/module/core/former/src/hash_set.rs index ca26ad27eb..bf65f0229c 100644 --- a/module/core/former/src/hash_set.rs +++ b/module/core/former/src/hash_set.rs @@ -119,7 +119,8 @@ where /// ``` // xxx : update documentation -// pub type HashSetSubformer< K, Context, End > = ContainerSubformer::< K, HashSetDefinition< K, Context, End > >; +// write: instead of writing long version with ContainerSubformer it's possible to be more concise with help of the type alias +// pub type HashSetSubformer< K, Context, Formed, End > = ContainerSubformer::< K, HashSetDefinition< K, Context, Formed, End > >; diff --git a/module/core/former/tests/inc/former_tests/a_containers_with_subformer_manual.rs b/module/core/former/tests/inc/former_tests/a_containers_with_subformer_manual.rs index 1959d449b9..44317f1a6d 100644 --- a/module/core/former/tests/inc/former_tests/a_containers_with_subformer_manual.rs +++ b/module/core/former/tests/inc/former_tests/a_containers_with_subformer_manual.rs @@ -349,41 +349,6 @@ where >>() } -// #[ inline( always ) ] -// pub fn vec_1_set< Former2 >( self ) -> Former2 -// where -// Former2 : former::FormerBegin -// < -// former::VectorDefinition -// < -// String, -// Self, -// Self, -// __vec_1_end, -// > -// >, -// { -// Former2::_begin( None, Some( self ), __vec_1_end ) -// } -// -// pub fn vec_1( self ) -> -// former::VectorSubformer:: -// < -// String, -// Self, -// Self, -// __vec_1_end, -// > -// { -// self.vec_1_set::< former::VectorSubformer:: -// < -// String, -// Self, -// Self, -// __vec_1_end, -// > >() -// } - #[ inline( always ) ] pub fn hashmap_1_set< Former2 >( self ) -> Former2 where @@ -411,7 +376,7 @@ where self.hashmap_1_set::< former::ContainerSubformer:: < ( String, String ), former::HashMapDefinition< String, String, Self, Self, __hashmap_1_end > - >>() + > >() } #[ inline( always ) ]