[][src]Trait petgraph::matrix_graph::Zero

pub trait Zero {
    fn zero() -> Self;
fn is_zero(&self) -> bool; }
[]

Base trait for types that can be wrapped in a NotZero.

Implementors must provide a singleton object that will be used to mark empty edges in a MatrixGraph.

Note that this trait is already implemented for the base numeric types.

Required methods

fn zero() -> Self[]

Return the singleton object which can be used as a sentinel value.

fn is_zero(&self) -> bool[]

Return true if self is equal to the sentinel value.

Implementations on Foreign Types

impl Zero for u8[src][]

impl Zero for u16[src][]

impl Zero for u32[src][]

impl Zero for u64[src][]

impl Zero for usize[src][]

impl Zero for i8[src][]

impl Zero for i16[src][]

impl Zero for i32[src][]

impl Zero for i64[src][]

impl Zero for isize[src][]

impl Zero for f32[src][]

impl Zero for f64[src][]

Implementors