[−][src]Trait lhlist::Label
A trait with information about a label.
Typically, labels are simply unit-like structs used to identify elements in a list. This trait contains the label's name, an associated type, and an internal identifier.
It is encouraged that this trait be implemented using the new_label
macro or the #[label]
attribute, which ensures that the identifier Uid
is unique. See the
documentation for new_label for examples.
Associated Types
Loading content...Associated Constants
Loading content...Provided methods
fn name() -> &'static str
Returns the label's name (by default, variable name)
fn id() -> usize
Returns the label's unique identifier
Implementations on Foreign Types
impl<L> Label for PhantomData<L> where
L: Label,
[src]
L: Label,
const NAME: &'static str
[src]
type AssocType = L::AssocType
type Uid = L::Uid
fn name() -> &'static str
[src]
fn id() -> usize
[src]
Implementors
impl<L> Label for LabeledValue<L> where
L: Label,
[src]
L: Label,