Trait peapod::PhenotypeDebug
source · [−]pub trait PhenotypeDebug: Phenotype {
fn discriminant(&self) -> usize;
fn debug_tag(tag: usize) -> &'static str;
}
Expand description
Some helpful methods for using Phenotype
Required Methods
sourcefn discriminant(&self) -> usize
fn discriminant(&self) -> usize
Returns the tag that Phenotype uses internally
to identify the enum variant.
Note: this is different from the tag the compiler
uses or a discriminant that was manually specified. It
only has meaning in the context of Phenotype
.