Skip to main content

Module convert

Module convert 

Source
Expand description

Foreign path / CON → CON write for stack migration (CLI + library). Foreign path or CON → multi-frame CON write (migration surface).

Used by the CLI (readcon-core convert …) and callable from Rust without inventing a second conversion stack. Non-CON inputs require the chemfiles feature at runtime (chemfiles_import::chemfiles_enabled).

Structs§

ConvertReport
Outcome of a successful convert.

Enums§

ConvertError
Errors from path conversion.

Functions§

convert_path_to_con
Convert input (CON or chemfiles-readable foreign format) to CON at output.
path_looks_like_con
True when the path looks like native CON/convel (including compressed suffixes).
read_frames_for_convert
Read frames from a path: native CON/convel via the hot-path iterator, else chemfiles.