Struct cvar::List
[−]
[src]
pub struct List<'a, N, D> where
N: Borrow<str>,
D: Borrow<str>, { /* fields omitted */ }
List instance.
The N
ame and D
escription types allow abstracting over &'static str
, &'a str
and String
. This supports dynamic cvars while only paying for what you need.
Methods
impl<'a, N, D> List<'a, N, D> where
N: Borrow<str>,
D: Borrow<str>,
[src]
N: Borrow<str>,
D: Borrow<str>,
fn new(name: N, desc: D, visit: &'a IVisit) -> List<'a, N, D>
Creates a new List
.
Given a name, description and visitor to access its children.
Trait Implementations
impl<'a, N, D> INode for List<'a, N, D> where
N: Borrow<str>,
D: Borrow<str>,
[src]
N: Borrow<str>,
D: Borrow<str>,
fn name(&self) -> &str
Returns the node name.
fn description(&self) -> &str
Returns the node description.
impl<'a, N, D> IList for List<'a, N, D> where
N: Borrow<str>,
D: Borrow<str>,
[src]
N: Borrow<str>,
D: Borrow<str>,