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
Look up the value in the given column of this Row
.
fn columns(&self) -> usize
Returns the number of columns in this Row
.