fast_tuple

Crates.iofast_tuple
lib.rsfast_tuple
version0.1.3
sourcesrc
created_at2019-12-16 14:48:19.80928
updated_at2019-12-22 17:27:17.722777
descriptionThis is a Rust procedural macro library that provides an easy way to construct and annotate tuples.
homepage
repositoryhttps://github.com/NonNullableName/fast_tuple
max_upload_size
id189765
size5,827
Santino (IronThread)

documentation

README

This procedural macro crate provides a way to construct and annotate tuple types like arrays in Rust.

Usage

!#[feature(proc_macro_hygiene)] // required for expansion to expressions

use fast_tuple::tuple;

fn main() {
    let tuple: tuple!(u32; 2) = tuple!(2; 2);
    println!("{}, {}", tuple.0, tuple.1); // prints 2, 2
}

Version

This is a nigthly-only crate at the moment, unless you only use it for annotate types,this macro is also no_std only when debug assertions are disabled.

Commit count: 0

cargo fmt