Macro glucose::letters_for_vectors[][src]

macro_rules! letters_for_vectors {
    ($($e:expr => [$($c:expr, $d:ident);+]),+) => { ... };
}

A macro to add lettered getter and setter functions to a VecN

Usage

  • <...> : replace with values
  • ,+ can repeat infinite times but can not be empty

<Vector Dimension> => [<<index for data[n]> => <corresponding letter>>,+],+

Example