pub trait Scheme {
fn to_cri_id(&self) -> Option<i16>;
fn to_text_scheme(&self) -> &str;
fn equals(&self, other: impl Scheme) -> bool { ... }
}Expand description
A scheme as is part of every CRI.
Required Methods
Give the CRI registered negative integer for the used scheme, if one exits.
Open questions
More correct would be an nint type that has precisely nint semantics,
fn to_text_scheme(&self) -> &str
fn to_text_scheme(&self) -> &str
Give the textual representation of the scheme
Open questions
Should this be fallible? Not being, this makes it hard for a Scheme implementation to carry unknown schemes around.