Trait matrix::Size [] [src]

pub trait Size {
    fn rows(&self) -> usize;
    fn columns(&self) -> usize;

    fn dimensions(&self) -> (usize, usize) { ... }
}

A size.

Required Methods

fn rows(&self) -> usize

Return the number of rows.

fn columns(&self) -> usize

Return the number of columns.

Provided Methods

fn dimensions(&self) -> (usize, usize)

Return the number of rows and columns.

Implementors