Added define_fn

- updated write_fn_step to support attributes, bind names and
  explicit argument types
- added define_fn to generate write_fn_step sequences
- updated concatenate to define_fn as an example
This commit is contained in:
2023-06-02 18:21:10 +01:00
parent 01aa37b27d
commit 5bb8a12fc2
9 changed files with 184 additions and 64 deletions

7
Cargo.lock generated
View File

@@ -298,6 +298,7 @@ dependencies = [
"hashbrown 0.13.2",
"itertools",
"ordered-float",
"paste",
"thiserror",
"trait-set",
]
@@ -311,6 +312,12 @@ dependencies = [
"num-traits",
]
[[package]]
name = "paste"
version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79"
[[package]]
name = "proc-macro2"
version = "1.0.56"