Struct ptree::item::StringItem[][src]

pub struct StringItem {
    pub text: String,
    pub children: Vec<StringItem>,
}

A simple concrete implementation of TreeItem using Strings

While a tree of StringItems can be constructed directly, it is usually easier to use a TreeBuilder.

Fields

The item's own text, to be returned by write_self

The list of item's children

Trait Implementations

impl Clone for StringItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StringItem
[src]

Formats the value using the given formatter. Read more

impl TreeItem for StringItem
[src]

The type of this item's child items Read more

Write the item's own contents (without children) to f Read more

Retrieve a list of this item's children Read more

Auto Trait Implementations

impl Send for StringItem

impl Sync for StringItem