Derive Macro solders_macros::EnumIntoPy

source ·
#[derive(EnumIntoPy)]
Expand description

Impl IntoPy for an ADT where each variant is a newtype.

Example

use solders_macros::EnumIntoPy;

#[derive(PartialEq, Debug, EnumIntoPy)]
pub enum Foo {
  A(u8),
  B(u8)
}