pub trait AnnotationId {
    // Required method
    fn as_u32(&self) -> u32;

    // Provided method
    fn to_be_bytes(&self) -> [u8; 4] { ... }
}
Expand description

All annotations (Genes, OmimDiseases) 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§

source

fn as_u32(&self) -> u32

Return the integer representation of the annotation ID

Provided Methods§

source

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.

Implementors§