From 8a5d4980f162d400cc605ed9cdb77cfb23e63b49 Mon Sep 17 00:00:00 2001 From: wandalen Date: Sat, 30 Mar 2024 11:52:26 +0200 Subject: [PATCH] former : experimenting --- module/core/former/src/axiomatic.rs | 2 -- module/core/former/src/container.rs | 2 +- module/core/former/src/vector.rs | 2 +- module/core/former_meta/src/derive/former.rs | 16 ---------------- 4 files changed, 2 insertions(+), 20 deletions(-) diff --git a/module/core/former/src/axiomatic.rs b/module/core/former/src/axiomatic.rs index d9abbd710c..8886cf027b 100644 --- a/module/core/former/src/axiomatic.rs +++ b/module/core/former/src/axiomatic.rs @@ -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. diff --git a/module/core/former/src/container.rs b/module/core/former/src/container.rs index 437d1bf16b..055bd791ad 100644 --- a/module/core/former/src/container.rs +++ b/module/core/former/src/container.rs @@ -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 diff --git a/module/core/former/src/vector.rs b/module/core/former/src/vector.rs index 9f69ba7221..f8d312735e 100644 --- a/module/core/former/src/vector.rs +++ b/module/core/former/src/vector.rs @@ -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 > >; diff --git a/module/core/former_meta/src/derive/former.rs b/module/core/former_meta/src/derive/former.rs index 2ecea72127..4df477efae 100644 --- a/module/core/former_meta/src/derive/former.rs +++ b/module/core/former_meta/src/derive/former.rs @@ -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. ///