[−][src]Trait lhlist::StrLabels
Generate a Vec
containing the names of the labels in a labeled cons-list.
Example
use lhlist::StrLabels; new_label![MyLabel1]; new_label![MyLabel2]; new_label![MyLabel3]; let list = lhlist![MyLabel1 = (), MyLabel2 = (), MyLabel3 = ()]; assert_eq!(list.labels(), vec!["MyLabel1", "MyLabel2", "MyLabel3"]);
Required methods
fn static_labels() -> Vec<&'static str>
Generates the label name Vec
Provided methods
Loading content...Implementors
impl StrLabels for Nil
[src]
impl<Lbl: Sized, Tail> StrLabels for Cons<Lbl, Tail> where
Self: Len + BuildStrLabels,
[src]
Self: Len + BuildStrLabels,