Trait hpo::annotations::AnnotationId
source · pub trait AnnotationId {
// Required method
fn as_u32(&self) -> u32;
// Provided method
fn to_be_bytes(&self) -> [u8; 4] { ... }
}
Expand description
All annotations (Gene
s, OmimDisease
s) are defined by a unique ID that is constrained by this trait
The ID must be unique only within the annotation type, i.e. a gene and a disease can have the same ID.
Required Methods§
Provided Methods§
sourcefn to_be_bytes(&self) -> [u8; 4]
fn to_be_bytes(&self) -> [u8; 4]
Returns the memory representation of the inner integer as a byte array in big-endian (network) byte order.