hopr_path::selectors

Trait EdgeWeighting

Source
pub trait EdgeWeighting<W>
where W: Default + Add<W, Output = W>,
{ // Required method fn calculate_weight(channel: &ChannelEdge) -> W; }
Expand description

Computes weights of edges corresponding to ChannelEdge.

Required Methods§

Source

fn calculate_weight(channel: &ChannelEdge) -> W

Edge weighting function.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§