pleme-closedaxis-derive 0.1.0

Enum-fold derive proc-macro emitted from a tatara-rust-derive EnumFoldDeriveSpec.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 8.62 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 274.2 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • drzln

pleme-closedaxis-derive

allvariants targeting the shikumi ClosedAxis trait: for a unit enum, emits the inherent pub const ALL plus impl shikumi::ClosedAxis for Self bound to the same slice, so the enum plugs into shikumi axis_iter / axis_cardinality / ProductCube with zero hand-written ALL. Delegates emission to the proven EnumFold emitter. Consumer enum must derive Copy + Eq + Hash.

Build crates.io

Install

[dependencies]
pleme-closedaxis-derive = "*"

Generation

This crate is mechanically emitted by tatara-rust-ast. The author surface is a typed (defmacro …) Spec — the proc-macro implementation, tests, Nix flake, caixa wrapper, and CI workflow are all generated. See the catalog at catalog.json in the parent registry.