Crate readstat_sys

Crate readstat_sys 

Source
Expand description

Raw FFI bindings to the ReadStat C library.

This crate provides auto-generated bindings via bindgen. It compiles the ReadStat C source files from a vendored git submodule and links against platform-specific iconv and zlib libraries.

These bindings expose the full ReadStat API, including support for SAS (.sas7bdat, .xpt), SPSS (.sav, .zsav, .por), and Stata (.dta) file formats. However, the higher-level readstat crate currently only implements parsing and conversion for SAS .sas7bdat files.

Most users should depend on the higher-level readstat crate instead of using these bindings directly.

Re-exports§

pub use self::readstat_type_e as readstat_type_t;
pub use self::readstat_type_class_e as readstat_type_class_t;
pub use self::readstat_measure_e as readstat_measure_t;
pub use self::readstat_alignment_e as readstat_alignment_t;
pub use self::readstat_compress_e as readstat_compress_t;
pub use self::readstat_endian_e as readstat_endian_t;
pub use self::readstat_error_e as readstat_error_t;
pub use self::readstat_io_flags_e as readstat_io_flags_t;

Structs§

__BindgenBitfieldUnit
mr_set_s
readstat_callbacks_s
readstat_io_s
readstat_label_set_s
readstat_metadata_s
readstat_missingness_s
readstat_parser_s
readstat_schema_entry_s
readstat_schema_s
readstat_string_ref_s
readstat_value_label_s
readstat_value_s
readstat_variable_s
readstat_writer_callbacks_s
readstat_writer_s

Constants§

readstat_alignment_e_READSTAT_ALIGNMENT_CENTER
readstat_alignment_e_READSTAT_ALIGNMENT_LEFT
readstat_alignment_e_READSTAT_ALIGNMENT_RIGHT
readstat_alignment_e_READSTAT_ALIGNMENT_UNKNOWN
readstat_compress_e_READSTAT_COMPRESS_BINARY
readstat_compress_e_READSTAT_COMPRESS_NONE
readstat_compress_e_READSTAT_COMPRESS_ROWS
readstat_endian_e_READSTAT_ENDIAN_BIG
readstat_endian_e_READSTAT_ENDIAN_LITTLE
readstat_endian_e_READSTAT_ENDIAN_NONE
readstat_error_e_READSTAT_ERROR_BAD_FORMAT_STRING
readstat_error_e_READSTAT_ERROR_BAD_FREQUENCY_WEIGHT
readstat_error_e_READSTAT_ERROR_BAD_MR_STRING
readstat_error_e_READSTAT_ERROR_BAD_TIMESTAMP_STRING
readstat_error_e_READSTAT_ERROR_BAD_TIMESTAMP_VALUE
readstat_error_e_READSTAT_ERROR_COLUMN_COUNT_MISMATCH
readstat_error_e_READSTAT_ERROR_CONVERT
readstat_error_e_READSTAT_ERROR_CONVERT_BAD_STRING
readstat_error_e_READSTAT_ERROR_CONVERT_LONG_STRING
readstat_error_e_READSTAT_ERROR_CONVERT_SHORT_STRING
readstat_error_e_READSTAT_ERROR_MALLOC
readstat_error_e_READSTAT_ERROR_NAME_BEGINS_WITH_ILLEGAL_CHARACTER
readstat_error_e_READSTAT_ERROR_NAME_CONTAINS_ILLEGAL_CHARACTER
readstat_error_e_READSTAT_ERROR_NAME_IS_RESERVED_WORD
readstat_error_e_READSTAT_ERROR_NAME_IS_TOO_LONG
readstat_error_e_READSTAT_ERROR_NAME_IS_ZERO_LENGTH
readstat_error_e_READSTAT_ERROR_NOTE_IS_TOO_LONG
readstat_error_e_READSTAT_ERROR_NUMERIC_VALUE_IS_OUT_OF_RANGE
readstat_error_e_READSTAT_ERROR_OPEN
readstat_error_e_READSTAT_ERROR_PARSE
readstat_error_e_READSTAT_ERROR_READ
readstat_error_e_READSTAT_ERROR_ROW_COUNT_MISMATCH
readstat_error_e_READSTAT_ERROR_ROW_IS_TOO_WIDE_FOR_PAGE
readstat_error_e_READSTAT_ERROR_ROW_WIDTH_MISMATCH
readstat_error_e_READSTAT_ERROR_SEEK
readstat_error_e_READSTAT_ERROR_STRING_REFS_NOT_SUPPORTED
readstat_error_e_READSTAT_ERROR_STRING_REF_IS_REQUIRED
readstat_error_e_READSTAT_ERROR_STRING_VALUE_IS_TOO_LONG
readstat_error_e_READSTAT_ERROR_TAGGED_VALUES_NOT_SUPPORTED
readstat_error_e_READSTAT_ERROR_TAGGED_VALUE_IS_OUT_OF_RANGE
readstat_error_e_READSTAT_ERROR_TOO_FEW_COLUMNS
readstat_error_e_READSTAT_ERROR_TOO_MANY_COLUMNS
readstat_error_e_READSTAT_ERROR_TOO_MANY_MISSING_VALUE_DEFINITIONS
readstat_error_e_READSTAT_ERROR_UNSUPPORTED_CHARSET
readstat_error_e_READSTAT_ERROR_UNSUPPORTED_COMPRESSION
readstat_error_e_READSTAT_ERROR_UNSUPPORTED_FILE_FORMAT_VERSION
readstat_error_e_READSTAT_ERROR_USER_ABORT
readstat_error_e_READSTAT_ERROR_VALUE_TYPE_MISMATCH
readstat_error_e_READSTAT_ERROR_WRITE
readstat_error_e_READSTAT_ERROR_WRITER_NOT_INITIALIZED
readstat_error_e_READSTAT_OK
readstat_io_flags_e_READSTAT_SEEK_CUR
readstat_io_flags_e_READSTAT_SEEK_END
readstat_io_flags_e_READSTAT_SEEK_SET
readstat_measure_e_READSTAT_MEASURE_NOMINAL
readstat_measure_e_READSTAT_MEASURE_ORDINAL
readstat_measure_e_READSTAT_MEASURE_SCALE
readstat_measure_e_READSTAT_MEASURE_UNKNOWN
readstat_type_class_e_READSTAT_TYPE_CLASS_NUMERIC
readstat_type_class_e_READSTAT_TYPE_CLASS_STRING
readstat_type_e_READSTAT_TYPE_DOUBLE
readstat_type_e_READSTAT_TYPE_FLOAT
readstat_type_e_READSTAT_TYPE_INT8
readstat_type_e_READSTAT_TYPE_INT16
readstat_type_e_READSTAT_TYPE_INT32
readstat_type_e_READSTAT_TYPE_STRING
readstat_type_e_READSTAT_TYPE_STRING_REF

Functions§

readstat_add_label_set
readstat_add_note
readstat_add_string_ref
readstat_add_variable
readstat_begin_row
readstat_begin_writing_dta
readstat_begin_writing_por
readstat_begin_writing_sas7bcat
readstat_begin_writing_sas7bdat
readstat_begin_writing_sav
readstat_begin_writing_xport
readstat_double_value
readstat_end_row
readstat_end_writing
readstat_error_message
readstat_float_value
readstat_get_compression
readstat_get_creation_time
readstat_get_endianness
readstat_get_file_encoding
readstat_get_file_format_is_64bit
readstat_get_file_format_version
readstat_get_file_label
readstat_get_modified_time
readstat_get_multiple_response_sets
readstat_get_multiple_response_sets_length
readstat_get_row_count
readstat_get_string_ref
readstat_get_table_name
readstat_get_var_count
readstat_get_variable
readstat_insert_double_value
readstat_insert_float_value
readstat_insert_int8_value
readstat_insert_int16_value
readstat_insert_int32_value
readstat_insert_missing_value
readstat_insert_string_ref
readstat_insert_string_value
readstat_insert_tagged_missing_value
readstat_int8_value
readstat_int16_value
readstat_int32_value
readstat_io_free
readstat_label_double_value
readstat_label_int32_value
readstat_label_string_value
readstat_label_tagged_value
readstat_parse_dta
readstat_parse_por
readstat_parse_sas7bcat
readstat_parse_sas7bdat
readstat_parse_sas_commands
readstat_parse_sav
readstat_parse_spss_commands
readstat_parse_stata_dictionary
readstat_parse_txt
readstat_parse_xport
readstat_parser_free
readstat_parser_init
readstat_schema_free
readstat_set_close_handler
readstat_set_data_writer
readstat_set_error_handler
readstat_set_file_character_encoding
readstat_set_fweight_handler
readstat_set_handler_character_encoding
readstat_set_io_ctx
readstat_set_metadata_handler
readstat_set_note_handler
readstat_set_open_handler
readstat_set_progress_handler
readstat_set_read_handler
readstat_set_row_limit
readstat_set_row_offset
readstat_set_seek_handler
readstat_set_update_handler
readstat_set_value_handler
readstat_set_value_label_handler
readstat_set_variable_handler
readstat_string_value
readstat_type_class
readstat_validate_metadata
readstat_validate_variable
readstat_value_is_defined_missing
readstat_value_is_missing
readstat_value_is_system_missing
readstat_value_is_tagged_missing
readstat_value_tag
readstat_value_type
readstat_value_type_class
readstat_variable_add_missing_double_range
readstat_variable_add_missing_double_value
readstat_variable_add_missing_string_range
readstat_variable_add_missing_string_value
readstat_variable_get_alignment
readstat_variable_get_display_width
readstat_variable_get_format
readstat_variable_get_index
readstat_variable_get_index_after_skipping
readstat_variable_get_label
readstat_variable_get_measure
readstat_variable_get_missing_range_hi
readstat_variable_get_missing_range_lo
readstat_variable_get_missing_ranges_count
readstat_variable_get_name
readstat_variable_get_storage_width
readstat_variable_get_type
readstat_variable_get_type_class
readstat_variable_set_alignment
readstat_variable_set_display_width
readstat_variable_set_format
readstat_variable_set_label
readstat_variable_set_label_set
readstat_variable_set_measure
readstat_writer_free
readstat_writer_init
readstat_writer_set_compression
readstat_writer_set_error_handler
readstat_writer_set_file_format_is_64bit
readstat_writer_set_file_format_version
readstat_writer_set_file_label
readstat_writer_set_file_timestamp
readstat_writer_set_fweight_variable
readstat_writer_set_table_name

Type Aliases§

__off_t
__time_t
mr_set_t
off_t
readstat_alignment_e
readstat_begin_data_callback
readstat_callbacks_t
readstat_close_handler
readstat_compress_e
readstat_data_writer
readstat_end_data_callback
readstat_endian_e
readstat_error_e
readstat_error_handler
readstat_fweight_handler
readstat_io_flags_e
readstat_io_t
readstat_label_set_t
readstat_measure_e
readstat_metadata_handler
readstat_metadata_ok_callback
readstat_metadata_t
readstat_missingness_t
readstat_module_ctx_free_callback
readstat_note_handler
readstat_off_t
readstat_open_handler
readstat_parser_t
readstat_progress_handler
readstat_read_handler
readstat_schema_entry_t
readstat_schema_t
readstat_seek_handler
readstat_string_ref_t
readstat_type_class_e
readstat_type_e
readstat_update_handler
readstat_value_handler
readstat_value_label_handler
readstat_value_label_t
readstat_value_t
readstat_variable_handler
readstat_variable_ok_callback
readstat_variable_t
readstat_variable_width_callback
readstat_write_double_callback
readstat_write_float_callback
readstat_write_int8_callback
readstat_write_int16_callback
readstat_write_int32_callback
readstat_write_missing_callback
readstat_write_row_callback
readstat_write_string_callback
readstat_write_string_ref_callback
readstat_write_tagged_callback
readstat_writer_callbacks_t
readstat_writer_t
time_t

Unions§

readstat_value_s__bindgen_ty_1