Crates.io | flatfish |
lib.rs | flatfish |
version | 0.1.0 |
source | src |
created_at | 2023-12-22 22:49:46.977331 |
updated_at | 2023-12-22 22:49:46.977331 |
description | A macro to write Fully Qualified Syntax without nesting turbofishes. |
homepage | |
repository | https://github.com/nanocryk/flatfish |
max_upload_size | |
id | 1078706 |
size | 16,372 |
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.