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

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

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

text: String

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

children: Vec<StringItem>

The list of item’s children

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.