pub fn parse_tbl(content: &str) -> Result<Vec<ParsedRestraint>, String>Expand description
Parses a HADDOCK .tbl restraints file into ParsedRestraints.
assign blocks that don’t resolve to any resid/segid selection
(dihedral, hbond, and other non-AIR CNS restraint types share the same
assign keyword but a different body) are skipped rather than treated
as errors, so one such block doesn’t discard every restraint already
parsed from the rest of the file.
§Errors
Returns Err if a resid/segid clause is present but malformed (a
residue number that doesn’t parse, or a segid with no chain after it),
or if the file contains no usable restraint at all.