macro_rules! impl_capture_from_canvas { ($id:tt, $capture:ty, $canvas:ty, $context:ty, $option:ty) => { ... }; }