Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Mar 23, 2024
1 parent a8b2279 commit babd9c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions module/core/former/src/axiomatic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ impl< Definition, T > FormingEnd< Definition >
for ReturnStorage
where
Definition : FormerDefinition< Context = (), Storage = T, Formed = T, End = Self >,
Definition::End : FormingEnd< Definition >,
// Definition::End : Self,
// Definition::Storage : Default,
{
#[ inline( always ) ]
Expand Down
3 changes: 2 additions & 1 deletion module/core/former/src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ for Vec< E >
// pub struct VectorDefinition< E, Context = (), End = ReturnStorage >
pub struct VectorDefinition< E, Context, End >
where
End : FormingEnd< Self >
End : FormingEnd< Self >,
Self : FormerDefinition,
{
_phantom : core::marker::PhantomData< ( E, Context, End ) >,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ where
{
}

// impl former::FormingEnd<former::VectorDefinition<String, (), former::ReturnStorage>> for former::ReturnStorage {
// fn call(&self, storage: former::VectorDefinition<String, (), former::ReturnStorage>::Storage, context: Option<former::VectorDefinition<String, (), former::ReturnStorage>::Context>) -> former::VectorDefinition<String, (), former::ReturnStorage>::Formed {
// storage
// }
// }

#[ test ]
fn push()
{
Expand Down

0 comments on commit babd9c7

Please sign in to comment.