Skip to main content

Module list

Module list 

Source
Expand description

Thin wrapper around R list (VECSXP).

Provides safe construction from Rust values and typed extraction.

§Submodules

ModuleContents
accumulatorListAccumulator — dynamic list construction with bounded protect stack
namedNamedList — O(1) name-indexed access via HashMap index

§Core Types

Re-exports§

pub use named_builder::BuiltList;
pub use named_builder::NamedListBuilder;
pub use accumulator::*;
pub use named::*;

Modules§

accumulator 🔒
ListAccumulator — unknown-length list construction with bounded stack usage.
named 🔒
NamedList — O(1) name-indexed access to R lists.
named_builder 🔒
Owned construction of heterogeneous named lists and data frames.

Macros§

impl_tuple_list 🔒

Structs§

List
Owned handle to an R list (VECSXP).
ListBuilder
Builder for constructing lists with efficient protection management.
ListMut
Mutable view of an R list (VECSXP).

Traits§

IntoList
Convert things into an R list.
TryFromList
Fallible conversion from an R list into a Rust value.

Functions§

into_list_column 👻
Build an R list-column (VECSXP) from values converted one at a time through IntoList.
into_option_list_column 👻
into_list_column for optional cells: None becomes NULL.
list_element 🔒
One element of a list of lists: a VECSXP. A pairlist element is refused, as List refuses a pairlist: a coerced copy would be a new object that nothing roots while the rest of the list is read.