[][src]Trait munkres::weight_num::WeightNum

pub trait WeightNum: PartialOrd + Copy + Sub<Output = Self> + Add<Output = Self> {
    fn is_zero(&self) -> bool;

    fn is_valid(&self) -> bool { ... }
fn add_if_valid(self, other: Self) -> Self { ... }
fn sub_if_valid(self, other: Self) -> Self { ... } }

Required methods

fn is_zero(&self) -> bool

Loading content...

Provided methods

fn is_valid(&self) -> bool

fn add_if_valid(self, other: Self) -> Self

fn sub_if_valid(self, other: Self) -> Self

Loading content...

Implementations on Foreign Types

impl WeightNum for usize[src]

fn is_valid(&self) -> bool[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

impl WeightNum for isize[src]

fn is_valid(&self) -> bool[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

impl WeightNum for u64[src]

fn is_valid(&self) -> bool[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

impl WeightNum for i64[src]

fn is_valid(&self) -> bool[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

impl WeightNum for u32[src]

fn is_valid(&self) -> bool[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

impl WeightNum for i32[src]

fn is_valid(&self) -> bool[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

impl WeightNum for u16[src]

fn is_valid(&self) -> bool[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

impl WeightNum for i16[src]

fn is_valid(&self) -> bool[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

impl WeightNum for u8[src]

fn is_valid(&self) -> bool[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

impl WeightNum for i8[src]

fn is_valid(&self) -> bool[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

impl WeightNum for f64[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

impl WeightNum for f32[src]

fn add_if_valid(self, other: Self) -> Self[src]

fn sub_if_valid(self, other: Self) -> Self[src]

Loading content...

Implementors

Loading content...