Skip to content

Rust macro crate for declaring fixed-size arrays without counting

License

Notifications You must be signed in to change notification settings

durka/counted-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What it is

This crate exports a macro which can be used to declare a fixed-size array without counting the elements by hand. This is achieved by using macro recursion to make rustc count the elements at compile time.

The macro can declare local variables, consts, statics, and lazy statics (if you import that crate, or enable this crate's "nightly" feature).

For examples, see the tests directory.

About

Rust macro crate for declaring fixed-size arrays without counting

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages