Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Apr 23, 2024
1 parent 482df01 commit 7f1dc8e
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 59 deletions.
5 changes: 0 additions & 5 deletions module/core/former/src/axiomatic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions module/core/former/tests/inc/former_tests/a_basic_manual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
110 changes: 56 additions & 54 deletions module/core/former/tests/inc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

Expand Down

0 comments on commit 7f1dc8e

Please sign in to comment.