ListItem

Trait ListItem 

Source
pub trait ListItem: DumpSection {
    // Required method
    fn into_sections(self) -> (Section, Option<Section>);
}
Expand description

A list item with optional out-of-band data.

Items can be added to List. The main sections returned from ListItem::into_sections are stored in a compact list, followed by all out-of-band data in implementation-defined order.

For convenience, ListItem is implemented for every type that implements Into<Section>, so that it can be used directly for types that do not require out-of-band data. Prefer to implement Into<Section> unless out-of-band data is explicitly required.

Required Methods§

Source

fn into_sections(self) -> (Section, Option<Section>)

Returns a pair of sections for in-band and out-of-band data.

Implementors§