Skip to main content

derive_deftly_template_BombImpls

Macro derive_deftly_template_BombImpls 

Source
macro_rules! derive_deftly_template_BombImpls {
    ({ $($driver:tt)* } [$($aoptions:tt)*] ($($future:tt)*) $($tpassthrough:tt)*) => { ... };
    ($($wrong:tt)*) => { ... };
}
Expand description

Helper for common impls on bombs

  • Provides fn new_armed
  • Provides fn new_simulated
  • Implements Drop, using TestableDrop::drop_impl

This is a derive_deftly template. Do not invoke it directly. To use it, write: #[derive(Deftly)] #[derive_deftly(BombImpls)].