Skip to content

Commit

Permalink
former : evolve
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Apr 20, 2024
1 parent 074bcdd commit 28a7503
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 44 deletions.
2 changes: 1 addition & 1 deletion module/core/former/src/hash_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ where

// pub type HashMapSubformer< K, E, Context, End > = ContainerSubformer::< ( K, E ), HashMapDefinition< K, E, Context, End > >;

// xxx : update documentation
// zzz : update documentation
// pub type HashMapSubformer< K, E, Context, End > = ContainerSubformer::< K, HashMapDefinition< K, E, Context, End > >;
pub type HashMapSubformer< K, E, Context, Formed, End > =
ContainerSubformer::< ( K, E ), HashMapDefinition< K, E, Context, Formed, End > >;
Expand Down
2 changes: 1 addition & 1 deletion module/core/former/src/hash_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ where
/// # }
/// ```

// xxx : update documentation
// zzz : update documentation
// 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 > =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// xxx : need to fix

// #[ derive( Former ) ]
// struct Foo
// {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn definitions()
fn begin_and_custom_end()
{

// xxx : make example with that
// zzz : make example with that

// basic case

Expand Down Expand Up @@ -94,7 +94,7 @@ fn begin_and_custom_end()
fn custom_definition()
{

// xxx : make example of that
// zzz : make example of that

struct Return13;
impl former::FormerDefinitionTypes for Return13
Expand Down Expand Up @@ -152,7 +152,7 @@ fn custom_definition()
fn custom_definition_parametrized()
{

// xxx : make example of that
// zzz : make example of that

struct Return13< E >( ::core::marker::PhantomData< E > );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ tests_impls!

//

// xxx : uncomment
fn custom_definition_params()
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ impl< K, > former :: StoragePreform for CommandFormerStorage< K, > where K : cor
}
}

// xxx
pub struct CommandFormer< K, Definition = CommandFormerDefinition< K, (), Command< K, >, former::ReturnPreformed >, >
where
K : core::hash::Hash + std::cmp::Eq,
Expand Down Expand Up @@ -290,7 +289,7 @@ where
}
}

// xxx
//

impl< K, Definition, > CommandFormer< K, Definition, >
where
Expand Down
34 changes: 0 additions & 34 deletions module/core/former/tests/inc/former_tests/subformer_basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,40 +106,6 @@ where
pub commands : collection_tools::HashMap< String, Command< K > >,
}

// xxx : remove
// pub type CommandSubformerWithClosure< K, Superformer > = CommandFormer
// <
// K,
// CommandFormerDefinition
// <
// K,
// Superformer,
// Superformer,
// former::FormingEndClosure< CommandFormerDefinitionTypes< K, Superformer, Superformer > >,
// >,
// >;
//
// pub trait CommandSubformerEnd< K, SuperFormer >
// where
// K : core::hash::Hash + std::cmp::Eq,
// Self : the_module::FormingEnd
// <
// CommandFormerDefinitionTypes< K, SuperFormer, SuperFormer >,
// >
// {
// }
//
// impl< K, SuperFormer, T > CommandSubformerEnd< K, SuperFormer >
// for T
// where
// K : core::hash::Hash + std::cmp::Eq,
// Self : the_module::FormingEnd
// <
// CommandFormerDefinitionTypes< K, SuperFormer, SuperFormer >,
// >
// {
// }

// ==

include!( "./only_test/subformer_basic.rs" );
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ where

//

/// xxx : extend description
/// get container for a field out of a storage
pub trait FormerStorageExtractContainer< Target >
{
Expand Down Expand Up @@ -131,7 +130,6 @@ where

//

/// xxx : extend description
/// extract storage from a former
pub trait FormerExtractStorage
{
Expand Down
1 change: 1 addition & 0 deletions module/core/former/tests/inc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ mod former_tests
mod attribute_perform;
mod attribute_setter;
mod attribute_alias;
// mod attribute_feature; // xxx : write test

mod string_slice_manual;
mod string_slice;
Expand Down

0 comments on commit 28a7503

Please sign in to comment.