Macro nova::bytevec[][src]

macro_rules! bytevec {
    (pub $name : ident, $n : tt) => { ... };
    (pub($($vis : tt) +) $name : ident, $n : tt) => { ... };
    ($name : ident, $n : tt) => { ... };
}
This is supported on crate feature heapless only.
Expand description

Creates a Vec<u8> newtype. With heapless feature enabled, creates a heapless::Vec<u8, N> newtype.

Usage

With heapless::Vec, the size needs to be specified.

nova::bytevec!(MyStringType, 128);

With an ordinary vector, no requirement for a size.

nova::bytevec!(MyStringType);