Skip to main content

HedgeGraphExt

Trait HedgeGraphExt 

Source
pub trait HedgeGraphExt<N, E> {
    type Error;

    // Required methods
    fn from_sym(graph: SymbolicaGraph<N, E>) -> Self;
    fn to_sym(graph: &Self) -> Result<SymbolicaGraph<&N, &E>, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn from_sym(graph: SymbolicaGraph<N, E>) -> Self

Source

fn to_sym(graph: &Self) -> Result<SymbolicaGraph<&N, &E>, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<N: Clone, E: Clone, S: NodeStorageOps<NodeData = N>> HedgeGraphExt<N, E> for HedgeGraph<E, N, NoData, S>

Source§

type Error = HedgeGraphError

Source§

fn from_sym(graph: SymbolicaGraph<N, E>) -> Self

Source§

fn to_sym( value: &HedgeGraph<E, N, NoData, S>, ) -> Result<SymbolicaGraph<&N, &E>, Self::Error>

Implementors§