Struct ptree::item::StringItem [−][src]
pub struct StringItem {
pub text: String,
pub children: Vec<StringItem>,
}
Expand description
A simple concrete implementation of TreeItem
using String
s
While a tree of StringItem
s 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
Write the item’s own contents (without children) to f
Read more
Auto Trait Implementations
impl RefUnwindSafe for StringItem
impl Send for StringItem
impl Sync for StringItem
impl Unpin for StringItem
impl UnwindSafe for StringItem
Blanket Implementations
Mutably borrows from an owned value. Read more