Trait petgraph::matrix_graph::Nullable[][src]

pub trait Nullable: Default + Into<Option<Self::Wrapped>> + Sealed { }
Expand description

Wrapper trait for an Option, allowing user-defined structs to be input as containers when defining a null element.

Note: this trait is currently sealed and cannot be implemented for types outside this crate.

Implementations on Foreign Types

impl<T> Nullable for Option<T>[src]

type Wrapped = T

fn new(value: T) -> Self[src]

fn as_ref(&self) -> Option<&Self::Wrapped>[src]

fn as_mut(&mut self) -> Option<&mut Self::Wrapped>[src]

Implementors

impl<T: Zero> Nullable for NotZero<T>[src]

type Wrapped = T

fn new(value: T) -> Self[src]

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

fn as_ref(&self) -> Option<&Self::Wrapped>[src]

fn as_mut(&mut self) -> Option<&mut Self::Wrapped>[src]