MutNetworkNodeWithReferenceCount

Trait MutNetworkNodeWithReferenceCount 

Source
pub trait MutNetworkNodeWithReferenceCount: NetworkNodeWithReferenceCount {
    // Required methods
    fn reference(&mut self);
    fn dereference(&mut self);
}
Expand description

Trait for a node which allows changing its reference counter.

Required Methods§

Source

fn reference(&mut self)

Increment the reference counter.

Source

fn dereference(&mut self)

Decrement the reference counter.

§Panics

Panics if the reference counter is already 0.

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§