Trait shortcut::Row

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

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§

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

Returns the number of columns in this Row.

Implementations on Foreign Types§

Implementors§