Expand description
ListAccumulator โ unknown-length list construction with bounded stack usage.
Unlike ListBuilder which requires knowing the size at construction,
ListAccumulator supports dynamic growth via push. It uses
ReprotectSlot internally to maintain O(1) protect stack usage.
Re-exportsยง
use crate::SEXPTYPE::STRSXP;๐use crate::SEXPTYPE::VECSXP;๐use crate::from_r::SexpError;๐use crate::gc_protect::OwnedProtect;๐use crate::gc_protect::ProtectScope;๐use crate::gc_protect::ReprotectSlot;๐use crate::gc_protect::Root;๐use crate::into_r::IntoR;๐use crate::sys;๐use crate::SEXP;๐use crate::SexpExt;๐use super::ListMut;๐
Structsยง
- List
Accumulator - Accumulator for building lists when the length is unknown upfront.
Functionsยง
- collect_
list โ - Collect an iterator into an R list with bounded protect stack usage.