NetworkNodeWithReferenceCount

Trait NetworkNodeWithReferenceCount 

Source
pub trait NetworkNodeWithReferenceCount: NetworkNode {
    // Required method
    fn num_references(&self) -> usize;
}
Expand description

Trait for a node which knows the number of its references.

Required Methods§

Source

fn num_references(&self) -> usize

Get the number of references to this node.

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§