Macros for simple default initialization of arrays of option types
EUPL-1.2 License
Full Changelog: https://github.com/sunsided/default-option-arr/compare/0.1.1...v0.2.0
Published by sunsided over 1 year ago
To use it in your project, add:
[dependencies]
default-option-arr = "0.1.0"
none_arr!
to create [None; N]
for any Option<T>
.none_cell_arr!
to create [None; N]
for any None<Option<T>>
.none_refcell_arr!
to create [None; N]
for any RefCell<Option<T>>
.