[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

abiriadev/tup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tup!() macro

Generate a tuple or tuple type by repeating value or type.

use tup::tup;

// make tuple of length 6 filled with 0
let new_tuple = tup!(0; 6);

// define a function accepting a tuple consisting of four `usize`
fn draw(box: tup!(usize; 4)) {
    // ...
}

Releases

No releases published

Packages

No packages published

Languages