Skip to main content

derive_deftly_template_BookkeptQty

Macro derive_deftly_template_BookkeptQty 

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

Implement BookkeptQty and its supertraits

By default, dropping when nonzero is forbidden, and you must have a field bomb: DropBombCondition. #[deftly(allow_nonzero_drop)] suppresses this.

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