[−][src]Module arenavec::rc
This module provides a reference-counted arena implementation.
This is primarily meant for usecases where the lifetime of the arena-allocated objects is overly hard (or impossible) to express in terms of Rust's lifetime facilities.
This allows for greater flexibility, but has the drawback that unexpected behaviour can arise when arena-allocated objects block the clearing of the arena even though the user expects to be already invalidated.
If you are not sure what arena to use, it's strongly suggested you try the region
module
first.
Structs
Arena | A reference-counting arena (non-MT-safe). |
InnerRef | A non-owning object referring to the arena. |
Type Definitions
Slice | An arena allocated, fixed-size sequence of objects |
SliceVec | An arena allocated, sequential, resizable vector |