Trait Appellation

Source
pub trait Appellation {
    type Class: Classifier;
    type Id: Identifier;

    // Required methods
    fn class(&self) -> &Self::Class;
    fn id(&self) -> &Self::Id;
    fn name(&self) -> &str;
}
Expand description

An appellation is considered to be a name or title that is used to identify an object. For our purposes, an Appellation is a type that is used to identify an object in a computational space. The appellation outlines a notation that combines an idenfifier, classifier, and name into a single unique identifier for an object.

Required Associated Types§

Required Methods§

Source

fn class(&self) -> &Self::Class

Source

fn id(&self) -> &Self::Id

Source

fn name(&self) -> &str

Implementations on Foreign Types§

Source§

impl<Cls, Id, T> Appellation for (Cls, Id, T)
where Cls: Classifier, Id: Identifier, T: AsRef<str>,

Source§

type Class = Cls

Source§

type Id = Id

Source§

fn class(&self) -> &Cls

Source§

fn id(&self) -> &Id

Source§

fn name(&self) -> &str

Implementors§