Skip to main content

Module types

Module types 

Source
Expand description

#[repr(C)] mirrors of libasdf’s public, non-opaque structs.

These layouts are load-bearing: callers construct and read them directly, so a wrong field order or width is silent memory corruption in a C caller rather than a compile error. Every one is checked against the vendored headers by the public_struct_layouts_match gate in tests/abi.rs.

Opaque types – asdf_file_t, asdf_value_t, asdf_block_t and friends – deliberately do not appear here. Their contents are private to the implementation, so they are free to be ordinary Rust types.

Re-exports§

pub use crate::ndarray_ffi::NdarrayErr as AsdfNdarrayErr;

Modules§

emitter_opt
Emitter options. The header defines these as 1 << bit.
log_field
Log field flags. The header defines these as 1 << bit.
parser_opt
Parser options. The header defines these as 1 << bit.

Structs§

asdf_block_header_t
A block header as it appears in the file, mirroring asdf_block_header_t.
asdf_block_info_t
Where a block sits in the file, mirroring asdf_block_info_t.
asdf_config_t
Extended options for opening a file, mirroring asdf_config_t.
asdf_container_iter_t
The public head of a container iterator, mirroring asdf_container_iter_t.
asdf_decomp_cfg_t
Decompression options.
asdf_emitter_cfg_t
Low-level emitter configuration, mirroring asdf_emitter_cfg_t.
asdf_find_iter_t
The public head of a find iterator, mirroring asdf_find_iter_t.
asdf_log_cfg_t
Per-file logging configuration, mirroring asdf_log_cfg_t.
asdf_mapping_iter_t
The public head of a mapping iterator, mirroring asdf_mapping_iter_t.
asdf_parser_cfg_t
Low-level parser configuration, mirroring asdf_parser_cfg_t.
asdf_sequence_iter_t
The public head of a sequence iterator, mirroring asdf_sequence_iter_t.
asdf_tree_info_t
Where a tree sits in the file, mirroring asdf_tree_info_t.
asdf_yaml_tag_handle_t
A %TAG directive, mirroring asdf_yaml_tag_handle_t.

Enums§

AsdfArrayStorage
Where an ndarray’s data is written, mirroring asdf_array_storage_t.
AsdfBlockDecompMode
When compressed block data is decompressed, mirroring asdf_block_decomp_mode_t.
AsdfEventType
The low-level parser’s event types, mirroring asdf_event_type_t.
AsdfValueErr
Return codes for value access, mirroring asdf_value_err_t.
AsdfValueType
The value types, mirroring asdf_value_type_t.
AsdfYamlEventType
The YAML sub-event types, mirroring asdf_yaml_event_type_t.
AsdfYamlNodeStyle
Node style hints, mirroring asdf_yaml_node_style_t.

Constants§

ASDF_EVENT_TYPE_COUNT
The number of members of asdf_event_type_t, as ASDF_EVENT_TYPE_COUNT.

Type Aliases§

AsdfEmitterOptFlags
Bitmask of emitter options, mirroring asdf_emitter_optflags_t.
AsdfLogFields
Bitmask of log fields, mirroring asdf_log_fields_t.
AsdfParserOptFlags
Bitmask of parser options, mirroring asdf_parser_optflags_t.