Struct ptree::item::StringItem [−][src]
pub struct StringItem { pub text: String, pub children: Vec<StringItem>, }
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
impl Clone for StringItem
[src]
impl Clone for StringItem
fn clone(&self) -> StringItem
[src]
fn clone(&self) -> StringItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for StringItem
[src]
impl Debug for StringItem
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl TreeItem for StringItem
[src]
impl TreeItem for StringItem
Auto Trait Implementations
impl Send for StringItem
impl Send for StringItem
impl Sync for StringItem
impl Sync for StringItem