refptr

Latest Version Documentation Build Status

Macros, attributes, and traits for invasively reference-counted structs in Rust. See the documentation for more details.

Usage

Structs which support being referenced using RefPtr are annotated with the #[refcounted(...)] attribute. This attribute generates the necessary unsafe code, extra members, and trait implementations required.

Configuration

The reference counting behaviour of the target type is controlled using flags passed to #[refcounted(...)]. The following are the currently supported config options: