Macro monster::array_type
[−]
[src]
macro_rules! array_type { ($NAME:ident, $SIZE:expr) => { ... }; }
Create an array wrapper which implements
Copy
Clone
PartialEq
Eq
PartialOrd
Ord
Debug
Display
Deref
AsMut
Index
Example
#[macro_use(array_type)] extern crate monster; array_type!(Array4, 4); fn main() { let key = Array4([1,2,3,4]); let key2 = key.clone(); assert_eq!(key, key2); }