flatfish 0.1.0

A macro to write Fully Qualified Syntax without nesting turbofishes.
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 278.78 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
  • nanocryk/flatfish
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nanocryk

Flatfish

flatfish crate flatfish documentation

Provide a ff! macro to write Fully Qualified Syntax without nesting turbofishes.

Which can be usefull in very generic code when the chain of traits and associated types can be long and verbose, or in macros generating chains of traits.

Syntax is

ff!(Type | Trait1::Item | Trait2::Item ...)

which desugars to

<... <<T as Trait1>::Item as Trait2>::Item ...>

Last item can be any associated item: type, function or constant.