OptionEdge

Trait OptionEdge 

Source
pub trait OptionEdge<N, E> {
    // Required methods
    fn this(self) -> Option<EdgeLoop<N, E>>;
    fn that(self) -> Option<EdgeLoop<N, E>>;
    fn both(self) -> Option<EdgeBoth<N, E>>;
    fn edge(self) -> Option<E>;
    unsafe fn both_unchecked(self) -> Option<EdgeBoth<N, E>>;
}
Expand description

An add-on to Option to make Edge interfacing with std more natural.

Required Methods§

Source

fn this(self) -> Option<EdgeLoop<N, E>>

Source

fn that(self) -> Option<EdgeLoop<N, E>>

Source

fn both(self) -> Option<EdgeBoth<N, E>>

Source

fn edge(self) -> Option<E>

Source

unsafe fn both_unchecked(self) -> Option<EdgeBoth<N, E>>

Implementors§

Source§

impl<N, E> OptionEdge<N, E> for Option<Edge<N, E>>