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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".