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
%TAGdirective, mirroringasdf_yaml_tag_handle_t.
Enums§
- Asdf
Array Storage - Where an ndarray’s data is written, mirroring
asdf_array_storage_t. - Asdf
Block Decomp Mode - When compressed block data is decompressed, mirroring
asdf_block_decomp_mode_t. - Asdf
Event Type - The low-level parser’s event types, mirroring
asdf_event_type_t. - Asdf
Value Err - Return codes for value access, mirroring
asdf_value_err_t. - Asdf
Value Type - The value types, mirroring
asdf_value_type_t. - Asdf
Yaml Event Type - The YAML sub-event types, mirroring
asdf_yaml_event_type_t. - Asdf
Yaml Node Style - Node style hints, mirroring
asdf_yaml_node_style_t.
Constants§
- ASDF_
EVENT_ TYPE_ COUNT - The number of members of
asdf_event_type_t, asASDF_EVENT_TYPE_COUNT.
Type Aliases§
- Asdf
Emitter OptFlags - Bitmask of emitter options, mirroring
asdf_emitter_optflags_t. - Asdf
LogFields - Bitmask of log fields, mirroring
asdf_log_fields_t. - Asdf
Parser OptFlags - Bitmask of parser options, mirroring
asdf_parser_optflags_t.