Struct cvar::List [] [src]

pub struct List<'a, N, D> where N: Borrow<str>, D: Borrow<str> {
    // some fields omitted
}

List instance.

The Name and Description 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]

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]

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]

fn as_visit(&self) -> &IVisit

Returns the visitor interface to access its children.