grin_core
macro_rules! to_edge { ($edge_type:ident, $n:expr) => { ... }; }
Macro to clean up casting to edge type