Struct ion::Section [] [src]

pub struct Section {
    pub dictionary: Dictionary,
    pub rows: Vec<Row>,
}

Fields

dictionary: Dictionary rows: Vec<Row>

Methods

impl Section
[src]

fn new() -> Section

fn get(&self, name: &str) -> Option<&Value>

fn fetch(&self, key: &str) -> Result<&ValueIonError>

like get, only returns a Result

fn rows_without_header(&self) -> &[Row]

fn parse<F: FromIon<Section>>(&self) -> Result<F, F::Err>

Trait Implementations

impl Display for Section
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl PartialEq for Section
[src]

fn eq(&self, __arg_0: &Section) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Section) -> bool

This method tests for !=.

impl Debug for Section
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> IntoIterator for &'a Section
[src]

type Item = Row

The type of the elements being iterated over.

type IntoIter = IntoIter<Self::Item>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more

impl IntoIterator for Section
[src]

type Item = Row

The type of the elements being iterated over.

type IntoIter = IntoIter<Row>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more