Skip to main content

Scheme

Struct Scheme 

Source
pub struct Scheme { /* private fields */ }

Trait Implementations§

Source§

impl Registry<u16, Code<u16>> for Scheme

Source§

fn new() -> Self

Create a new instance.
Source§

fn name(&self) -> String

Name of the classification scheme itself.
Source§

fn acronym(&self) -> String

A commonly used acronym for the scheme.
Source§

fn source(&self) -> String

Source, either documentation, or data, from which the scheme was compiled.
Source§

fn governing_body(&self) -> String

The name of the governing body of the scheme.
Source§

fn last_updated(&self) -> Option<Date>

The date, if known, that the scheme was last updated or published.
Source§

fn next_publication(&self) -> Option<Date>

The date, if known, that the scheme is expected to be updated.
Source§

fn get(&self, code: u16) -> Option<&Code<u16>>

Return a description of the code, or None if not present.
Source§

fn get_children(&self, _parent: u16) -> Option<Vec<&Code<u16>>>

Return a list of child descriptions for the parent code, or None if either no children are found, the parent code is not valid, or the scheme does not support hierarchy.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.