[−][src]Macro ingrid::coord
A coordinate instantiation helper.
This macro helps instantiate coordinates with a shorter syntax. Instead of
typing a full Coordinate::new(x, y)
, one simply has to write
coord!(x, y)
leading to more readable code.
Examples
assert_eq!(coord!(0, 0), Coordinate::new(0, 0));