pub async fn read_cif_from_string_async(
content: &str,
track_progress: &mut Option<Arc<Mutex<f32>>>,
) -> Result<Atoms, ReadError>
Expand description
Read atoms from a CIF file content string.
§Arguments
content
- CIF file content as a string.track_progress
- A mutable reference to an optionalArc<Mutex<f32>>
to track the progress of the reading.
§Returns
A single Atoms
object.
§Errors
ReadError::ParseError
- If the file format is not recognized or the file is not formatted correctly.