flatfish

Crates.ioflatfish
lib.rsflatfish
version0.1.0
sourcesrc
created_at2023-12-22 22:49:46.977331
updated_at2023-12-22 22:49:46.977331
descriptionA macro to write Fully Qualified Syntax without nesting turbofishes.
homepage
repositoryhttps://github.com/nanocryk/flatfish
max_upload_size
id1078706
size16,372
(nanocryk)

documentation

README

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.

Commit count: 3

cargo fmt