pub trait SborEnum<X>where
X: CustomValueKind,{
// Required methods
fn get_length(&self) -> usize;
fn get_discriminator(&self) -> u8;
}
Expand description
Marker trait for encoding as an Sbor Enum
Note - we add the X so that this can be safely implemented by different Custom macros without clashing Otherwise you couldn’t implement ManifestSbor and ScryptoSbor on the same type