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
PairlistElement
An element in a pairlist, optionally tagged
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)
RObject
Represents any R object that can be stored in an RDS file.

Functions§

read_rds
Read an RDS file from a byte slice.
write_rds
Write an RObject to RDS format. Returns gzip-compressed RDS data.

Type Aliases§

Result
Result type alias using our Error type.