[][src]Derive Macro derive_lit::VecFrontLit

#[derive(VecFrontLit)]

A derive for auto-generating a macro to create literal values for vec-like data structures with a front at right end

The vec-like data structure must have the following methods-

  • fn new() -> Self
  • fn push_front(elem)

The auto-generated macro will be of the following form-

let x: MyStruct = my_struct! [0, 9, 3, 4, 5]; // front at right