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
- Data
Frame Data - Data frame structure (boxed to reduce RObject enum size)
- Factor
Data - Factor structure (boxed to reduce RObject enum size)
- Lazy
Vector - Lazy vector metadata for deferred loading.
- Object
Path - Structured path for selective loading.
- Pairlist
Element - An element in a pairlist, optionally tagged
- Parse
Config - Configuration for parsing RDS files.
- S3Object
Data - S3 object structure (boxed to reduce RObject enum size)
- S4Object
Data - 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)
- Parse
Mode - Parsing mode for RDS files.
- RObject
- Represents any R object that can be stored in an RDS file.
- Vector
Data - 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.