Trait shortcut::Row[][src]

pub trait Row<T> {
    fn index(&self, column: usize) -> &T;
fn columns(&self) -> usize; }

Implementors of Row can be used to store the individual rows of a Store.

The only requirement of implementors is that they can be indexed by a column number. To allow debug assertion on Store insertions, we also require Row implementors to be able to reveal the number of columns they are storing.

Required methods

fn index(&self, column: usize) -> &T[src]

Look up the value in the given column of this Row.

fn columns(&self) -> usize[src]

Returns the number of columns in this Row.

Loading content...

Implementations on Foreign Types

impl<'a, T> Row<T> for &'a [T][src]

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

impl<T> Row<T> for Vec<T>[src]

impl<T> Row<T> for Arc<Vec<T>>[src]

Loading content...

Implementors

Loading content...