Skip to content

Commit

Permalink
experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Mar 29, 2024
1 parent c9be2d1 commit b577754
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
36 changes: 19 additions & 17 deletions module/core/former/tests/inc/former_tests/a_primitives_manual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,17 @@ impl Struct1

// = definition

#[ derive( Debug, Default ) ]
pub struct Struct1FormerDefinition;
// #[ derive( Debug, Default ) ]
// pub struct Struct1FormerDefinition;

#[ derive( Debug, Default ) ]
pub struct Struct1FormerDefinition2< E, Context = (), Formed = Struct1, End = former::ReturnPreformed >
pub struct Struct1FormerDefinition< Context = (), Formed = Struct1, End = former::ReturnPreformed >
// where
// End : FormingEnd< Struct1FormerDefinition< E, Context, Formed, NoEnd > >,
// End : FormingEnd< Struct1FormerDefinition< Context, Formed, NoEnd > >,
{
_phantom : core::marker::PhantomData< ( E, Context, Formed, End ) >,
_phantom : core::marker::PhantomData< ( Context, Formed, End ) >,
}

// #[ derive( Default ) ]
// pub struct ContainerSubformer< E, Definition >
// where
// Definition : FormerDefinition,
// // < Definition::Types as FormerDefinitionTypes >::Storage : ContainerAdd< Element = E >,
// {
// storage : core::option::Option< < Definition::Types as FormerDefinitionTypes >::Storage >,
// context : core::option::Option< < Definition::Types as FormerDefinitionTypes >::Context >,
// on_end : core::option::Option< Definition::End >,
// }

impl former::FormerDefinitionTypes
for Struct1FormerDefinition
{
Expand Down Expand Up @@ -156,12 +145,25 @@ for Struct1FormerStorage

// = former

// #[ derive( Default ) ]
// pub struct ContainerSubformer< E, Definition >
// where
// Definition : FormerDefinition,
// // < Definition::Types as FormerDefinitionTypes >::Storage : ContainerAdd< Element = E >,
// {
// storage : core::option::Option< < Definition::Types as FormerDefinitionTypes >::Storage >,
// context : core::option::Option< < Definition::Types as FormerDefinitionTypes >::Context >,
// on_end : core::option::Option< Definition::End >,
// }

pub struct Struct1Former
<
// Definition,
// FormerContext = Struct1,
// FormerEnd = the_module::ReturnPreformed,
>
// where
where
// Definition : FormerDefinition,
// FormerEnd : the_module::FormingEnd< Struct1FormerDefinition >,
{
storage : Struct1FormerStorage,
Expand Down
2 changes: 1 addition & 1 deletion module/core/former/tests/inc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod former_tests
mod container_former_hashmap;

mod a_primitives_manual;
mod a_primitives_expanded;
// mod a_primitives_expanded;
// mod a_primitives;
// mod a_containers_without_runtime_manual;
// mod a_containers_without_runtime;
Expand Down

0 comments on commit b577754

Please sign in to comment.