1 2 3 4 5 6 7 8
#[macro_export] macro_rules! type_to_none { ($name:ident, $T:ty) => { fn $name(&mut self, node: &mut Option<$T>) { *node = None; } }; }