pub fn field_from_read_construct(text: &str) -> FemmResult<FieldSummary>Expand description
Decodes a field read-construct into a FieldSummary.
Accepts both the versioned #(femm/Field v1 ...) form and the legacy
#(femm/field ...) form.
ยงExamples
use sim_lib_femm_codec::field_from_read_construct;
let summary = field_from_read_construct("#(femm/Field v1 3 \"bmag\")").unwrap();
assert_eq!(summary.solution_id, 3);
assert_eq!(summary.projection, "bmag");