Skip to main content

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.

Modules§

constants
Constants for RDS file format.

Structs§

Attributes
Attributes attached to R objects Optimized with SmallVec to avoid heap allocation for common case of 0-2 attributes
ChunkConfig
ChunkedCacheMetrics
ChunkedRdsSource
Complex
Represents a complex number
DataFrameData
Data frame structure (boxed to reduce RObject enum size)
DataFrameMetadata
DatasetInfo
ExtractedVectorInfo
ExtractionOutput
ExtractionResult
FactorData
Factor structure (boxed to reduce RObject enum size)
LazyVector
Lazy vector metadata for deferred loading.
Manifest
ManifestVector
MaterializationContext
MmapRdsSource
ObjectExtractionOutput
ObjectPath
Structured path for selective loading.
PairlistElement
An element in a pairlist, optionally tagged
ParseConfig
Configuration for parsing RDS files.
ParseResult
S3ObjectData
S3 object structure (boxed to reduce RObject enum size)
S4Metadata
S4ObjectData
S4 object structure (boxed to reduce RObject enum size)
S4SlotPolicy
Policy controlling how S4 slot pairlists are handled during lazy parsing.
StreamingProgress
VectorFileHeader
VectorMetadata

Enums§

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

Traits§

RdsInput
RdsVisitor

Functions§

convert_object_to_raw_dump
convert_object_to_raw_dump_at_path
expand_dataframe_paths
expand_dense_matrix_paths
expand_list_index_paths
expand_object_paths
expand_object_paths_for_kind
expand_s4_slot_paths
expand_sparse_matrix_paths
extract_complex_vector_streaming
extract_integer_vector_streaming
extract_logical_vector_streaming
extract_object_from_path
extract_object_from_path_chunked
extract_object_from_path_with_kind
extract_object_from_path_with_kind_chunked
extract_object_to_raw_files
extract_object_to_raw_files_with_input_streaming
extract_object_to_raw_files_with_kind
extract_object_to_raw_files_with_kind_and_input_streaming
extract_raw_vector_streaming
extract_real_vector_streaming
extract_vectors_from_path
extract_vectors_from_path_chunked
extract_vectors_streaming
extract_vectors_to_raw_files
inspect_metadata_streaming
materialize_complex_data
materialize_complex_vector
materialize_integer_data
materialize_integer_vector
materialize_logical_data
materialize_logical_vector
materialize_path
materialize_paths_with_budget
materialize_raw_data
materialize_raw_vector
materialize_real_data
materialize_real_vector
read_extraction_manifest
read_lazy_character_range
read_lazy_complex_range
read_lazy_integer_range
read_lazy_logical_range
read_lazy_raw_range
read_lazy_real_range
read_rds
Read an RDS file from a byte slice with default safety limits.
read_rds_from_path
Read an RDS file from a file path with default configuration.
read_rds_from_path_chunked
Read an RDS file from a file path with default configuration, backed by chunked reads.
read_rds_from_path_chunked_with_config
Read an RDS file from a file path with custom configuration, backed by chunked reads.
read_rds_from_path_with_config
Read an RDS file from a file path with custom configuration.
read_rds_lazy
Read an RDS file in lazy mode (metadata only, no vector data allocation).
read_rds_lazy_from_path
Read an RDS file from a file path in lazy metadata mode.
read_rds_lazy_from_path_chunked
Read an RDS file from a file path in lazy metadata mode, backed by chunked reads.
read_rds_lazy_with_input
Read an RDS file from an input source in lazy metadata mode.
read_rds_with_config
Read an RDS file from a byte slice with custom configuration.
read_rds_with_input
Read an RDS file from an input source with custom configuration.
read_vector_file_header
traverse_rds_streaming
traverse_rds_streaming_with_progress
validate_vector_file_header
write_extraction_manifest
write_extraction_manifest_with_kind
write_rds
Write an RObject to RDS format. Returns gzip-compressed RDS data.
write_rds_atomic
Write an RObject to disk atomically (native only).
write_rds_streaming
Streaming writer APIs.
write_rds_streaming_with_compression
Write an RObject to a streaming sink with an explicit compression level.

Type Aliases§

Result
Result type alias using our Error type.
StreamingResult