From 7f1dc8eccbf69737173cf46acd836d2968b32225 Mon Sep 17 00:00:00 2001 From: wandalen Date: Wed, 24 Apr 2024 00:04:23 +0300 Subject: [PATCH] former : experimenting --- module/core/former/src/axiomatic.rs | 5 - .../tests/inc/former_tests/a_basic_manual.rs | 3 + module/core/former/tests/inc/mod.rs | 110 +++++++++--------- 3 files changed, 59 insertions(+), 59 deletions(-) diff --git a/module/core/former/src/axiomatic.rs b/module/core/former/src/axiomatic.rs index f9af1f3ecf..cd8e43d686 100644 --- a/module/core/former/src/axiomatic.rs +++ b/module/core/former/src/axiomatic.rs @@ -20,14 +20,9 @@ pub trait StoragePreform /// zzz : write description pub trait FormerDefinitionTypes : Sized { - // type Storage : Storage< Definition = Self >; - // type Storage : Storage< Formed = Self::Formed >; type Storage : Default; type Formed; type Context; - - // fn preform( storage : Self::Storage, context : Self::Context ) -> Self::Formed; - } /// zzz : write description diff --git a/module/core/former/tests/inc/former_tests/a_basic_manual.rs b/module/core/former/tests/inc/former_tests/a_basic_manual.rs index dcec2edb6d..ed0f627c4d 100644 --- a/module/core/former/tests/inc/former_tests/a_basic_manual.rs +++ b/module/core/former/tests/inc/former_tests/a_basic_manual.rs @@ -69,6 +69,9 @@ impl< Context, Formed, End > former::FormerDefinition for Struct1FormerDefinitio where End : former::FormingEnd< Struct1FormerDefinitionTypes< Context, Formed > > { type Types = Struct1FormerDefinitionTypes< Context, Formed >; + // type Storage = Struct1FormerStorage; + // type Formed = Formed; + // type Context = Context; type End = End; } diff --git a/module/core/former/tests/inc/mod.rs b/module/core/former/tests/inc/mod.rs index 4182358976..441d91fe6e 100644 --- a/module/core/former/tests/inc/mod.rs +++ b/module/core/former/tests/inc/mod.rs @@ -7,61 +7,63 @@ mod former_tests #[ allow( unused_imports ) ] use super::*; - #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] - mod container_former_common; - #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] - mod container_former_vec; - #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] - mod container_former_hashset; - #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] - mod container_former_hashmap; - +// xxx : uncomment +// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] +// mod container_former_common; +// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] +// mod container_former_vec; +// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] +// mod container_former_hashset; +// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] +// mod container_former_hashmap; +// mod a_basic_manual; - mod a_basic; - mod a_primitives_manual; - mod a_primitives; - mod a_containers_without_subformer; - #[ cfg( not( feature = "no_std" ) ) ] - mod a_containers_with_subformer_manual; - #[ cfg( not( feature = "no_std" ) ) ] - mod a_containers_with_subformer ; - - mod attribute_default_container; - mod attribute_default_primitive; - mod attribute_perform; - mod attribute_setter; - mod attribute_alias; - // mod attribute_feature; // xxx : write test - - mod string_slice_manual; - mod string_slice; - mod unsigned_primitive_types; - mod default_user_type; - mod user_type_no_default; - mod user_type_no_debug; - - mod name_collision_former_hashmap_without_parameter; - mod name_collision_former_vector_without_parameter; - mod name_collisions; - mod name_collision_context; - mod name_collision_end; - mod name_collision_on_end; - - #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] - mod parametrized_struct_manual; - #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] - mod parametrized_struct_imm; - #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] - mod parametrized_struct_where; - - #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] - mod subformer_basic; - #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] - mod subformer_custom; - #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] - mod subformer_custom_experimental; - #[ cfg( any( not( feature = "no_std" ) ) ) ] - mod subformer_shortcut; + // mod a_basic; +// mod a_primitives_manual; +// mod a_primitives; +// mod a_containers_without_subformer; +// #[ cfg( not( feature = "no_std" ) ) ] +// mod a_containers_with_subformer_manual; +// #[ cfg( not( feature = "no_std" ) ) ] +// mod a_containers_with_subformer ; +// +// mod attribute_default_container; +// mod attribute_default_primitive; +// mod attribute_perform; +// mod attribute_setter; +// mod attribute_alias; +// // mod attribute_feature; // xxx : write test +// +// mod string_slice_manual; +// mod string_slice; +// mod unsigned_primitive_types; +// mod default_user_type; +// mod user_type_no_default; +// mod user_type_no_debug; +// +// mod name_collision_former_hashmap_without_parameter; +// mod name_collision_former_vector_without_parameter; +// mod name_collisions; +// mod name_collision_context; +// mod name_collision_end; +// mod name_collision_on_end; +// +// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] +// mod parametrized_struct_manual; +// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] +// mod parametrized_struct_imm; +// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] +// mod parametrized_struct_where; +// +// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] +// mod subformer_basic; +// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] +// mod subformer_custom; +// #[ cfg( any( not( feature = "no_std" ), feature = "use_alloc" ) ) ] +// mod subformer_custom_experimental; +// #[ cfg( any( not( feature = "no_std" ) ) ) ] +// mod subformer_shortcut; + // xxx : uncomment }