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§
Sourcefn ref_count(&self) -> &RefCounted
fn ref_count(&self) -> &RefCounted
Returns a reference to the contained RefCounted field.