[][src]Struct ion::Section

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

Fields

dictionary: Dictionaryrows: Vec<Row>

Methods

impl Section[src]

pub fn new() -> Section[src]

pub fn with_capacity(n: usize) -> Section[src]

pub fn get(&self, name: &str) -> Option<&Value>[src]

pub fn fetch(&self, key: &str) -> Result<&Value, IonError>[src]

like get, only returns a Result

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

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

Trait Implementations

impl PartialEq<Section> for Section[src]

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?

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?

impl Debug for Section[src]

impl Display for Section[src]

Auto Trait Implementations

impl Send for Section

impl Sync for Section

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.