Skip to main content

HedgeGraphCffExt

Trait HedgeGraphCffExt 

Source
pub trait HedgeGraphCffExt {
    // Required methods
    fn build_cff_from_subgraph<S: SubGraphLike>(
        &self,
        subgraph: &S,
        options: CffOptions,
        reversed_dangling: &[EdgeId],
        cache: &mut SurfaceCache,
    ) -> Result<CffResult, CffError>;
    fn build_cff_from_subgraph_with_edge_roles<S, F>(
        &self,
        subgraph: &S,
        options: CffOptions,
        reversed_dangling: &[EdgeId],
        edge_role: F,
        cache: &mut SurfaceCache,
    ) -> Result<CffResult, CffError>
       where S: SubGraphLike,
             F: FnMut(EdgeId) -> HedgeEdgeRole;
}

Required Methods§

Source

fn build_cff_from_subgraph<S: SubGraphLike>( &self, subgraph: &S, options: CffOptions, reversed_dangling: &[EdgeId], cache: &mut SurfaceCache, ) -> Result<CffResult, CffError>

Source

fn build_cff_from_subgraph_with_edge_roles<S, F>( &self, subgraph: &S, options: CffOptions, reversed_dangling: &[EdgeId], edge_role: F, cache: &mut SurfaceCache, ) -> Result<CffResult, CffError>
where S: SubGraphLike, F: FnMut(EdgeId) -> HedgeEdgeRole,

Build CFF while assigning application-specific roles to selected edges.

The callback classifies original Linnet edge IDs without constructing an intermediate graph wrapper. This is useful for finalized runtime graphs that retain bookkeeping edges which must not participate in CFF, or sewn initial-state edges which contribute shifts but no generated orientation.

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<E, V, H, N> HedgeGraphCffExt for HedgeGraph<E, V, H, N>
where N: NodeStorageOps<NodeData = V>,

Source§

fn build_cff_from_subgraph<S: SubGraphLike>( &self, subgraph: &S, options: CffOptions, reversed_dangling: &[EdgeId], cache: &mut SurfaceCache, ) -> Result<CffResult, CffError>

Source§

fn build_cff_from_subgraph_with_edge_roles<S, F>( &self, subgraph: &S, options: CffOptions, reversed_dangling: &[EdgeId], edge_role: F, cache: &mut SurfaceCache, ) -> Result<CffResult, CffError>
where S: SubGraphLike, F: FnMut(EdgeId) -> HedgeEdgeRole,

Implementors§