Skip to main content

HasRefCount

Trait HasRefCount 

Source
pub trait HasRefCount {
    // Required method
    fn ref_count(&self) -> &RefCounted;
}
Expand description

Trait to be implemented by types that contain a RefCounted field.

Used to locate the RefCounted field within a type.

Required Methods§

Source

fn ref_count(&self) -> &RefCounted

Returns a reference to the contained RefCounted field.

Implementors§