Crate rds2rust

Crate rds2rust 

Source
Expand description

A Rust library for reading and writing R RDS files without requiring an R runtime.

This library provides functionality to serialize and deserialize R objects to/from the RDS binary format.

Structs§

Attributes
Attributes attached to R objects Optimized with SmallVec to avoid heap allocation for common case of 0-2 attributes
Complex
Represents a complex number
DataFrameData
Data frame structure (boxed to reduce RObject enum size)
FactorData
Factor structure (boxed to reduce RObject enum size)
LazyVector
Lazy vector metadata for deferred loading.
ObjectPath
Structured path for selective loading.
PairlistElement
An element in a pairlist, optionally tagged
ParseConfig
Configuration for parsing RDS files.
S3ObjectData
S3 object structure (boxed to reduce RObject enum size)
S4ObjectData
S4 object structure (boxed to reduce RObject enum size)

Enums§

Error
Errors that can occur during RDS parsing or writing.
Logical
Represents a logical value in R (TRUE, FALSE, or NA)
ParseMode
Parsing mode for RDS files.
RObject
Represents any R object that can be stored in an RDS file.
VectorData
Vector data that can be either fully loaded or lazy.

Functions§

read_rds
Read an RDS file from a byte slice with default safety limits.
read_rds_lazy
Read an RDS file in lazy mode (metadata only, no vector data allocation).
read_rds_with_config
Read an RDS file from a byte slice with custom configuration.
write_rds
Write an RObject to RDS format. Returns gzip-compressed RDS data.

Type Aliases§

Result
Result type alias using our Error type.