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

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 Debug for StringItem[src]

impl TreeItem for StringItem[src]

type Child = Self

The type of this item’s child items Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.