Trait sbor::categorize::SborEnum
source · pub trait SborEnum<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