Skip to main content

DefaultMetric

Trait DefaultMetric 

pub trait DefaultMetric: NodeInfo {
    type DefaultMetric: Metric<Self>;
}
Expand description

A trait indicating the default metric of a NodeInfo.

Adds quality of life functions to Node<N>, where N is a DefaultMetric. For example, Node<DefaultMetric>.count.

Required Associated Types§

type DefaultMetric: Metric<Self>

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§