Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Mar 30, 2024
1 parent 9edb684 commit 8a5d498
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
2 changes: 0 additions & 2 deletions module/core/former/src/axiomatic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ pub trait FormerDefinition : Sized
/// - `Storage`: The type of the container being processed.
/// - `Context`: The type of the context that might be altered or returned upon completion.

// xxx2 : continue. try
// pub trait FormingEnd< Definition : FormerDefinitionTypes > : Default
pub trait FormingEnd< Definition : FormerDefinitionTypes >
{
/// Called at the end of the subforming process to return the modified or original context.
Expand Down
2 changes: 1 addition & 1 deletion module/core/former/src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ where
on_end : core::option::Option< Definition::End >,
}

// xxx : cover by test
// zzz : cover by test
use std::fmt;
impl< E, Definition > fmt::Debug for ContainerSubformer< E, Definition >
where
Expand Down
2 changes: 1 addition & 1 deletion module/core/former/src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ where
/// `VectorSubformer` leverages the `VectorLike` trait to enable the construction and manipulation
/// of vector-like containers in a builder pattern style, promoting readability and ease of use.

// xxx : update documentation
// zzz : update documentation

pub type VectorSubformer< E, Context, Formed, End > =
ContainerSubformer::< E, VectorDefinition< E, Context, Formed, End > >;
Expand Down
16 changes: 0 additions & 16 deletions module/core/former_meta/src/derive/former.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1183,26 +1183,10 @@ pub fn former( input : proc_macro::TokenStream ) -> Result< TokenStream >
}

#[ automatically_derived ]
// impl #generics_impl #former < #generics_params (), former::ReturnPreformed >
impl #generics_impl #former < #generics_params >
#generics_where
{

// ///
// /// Construct new instance of former with default parameters.
// ///
// #[ inline( always ) ]
// pub fn new( ) -> Self
// {
// // #former :: < #generics_params #struct_name #generics_ty, former::ReturnPreformed > :: begin
// Self :: begin
// (
// None,
// None,
// former::ReturnPreformed,
// )
// }

///
/// Construct new instance of former with default parameters.
///
Expand Down

0 comments on commit 8a5d498

Please sign in to comment.