Trait pathfinding::kuhn_munkres::Weights[][src]

pub trait Weights<C> {
    fn rows(&self) -> usize;
fn columns(&self) -> usize;
fn at(&self, row: usize, col: usize) -> C;
fn neg(&self) -> Self
    where
        Self: Sized,
        C: Signed
; }
[]

Adjacency matrix for weights.

Required methods

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

Return the number of rows.

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

Return the number of columns.

fn at(&self, row: usize, col: usize) -> C[src][]

Return the element at position.

fn neg(&self) -> Self where
    Self: Sized,
    C: Signed
[src][]

Return the negated weights.

Implementors

impl<C: Copy> Weights<C> for Matrix<C>[src]