INNER CODE UNIT · Rust
exponent
steineggerlab/folddisco · lib/pdbtbx-cif/src/lib.rs:295
exponent = -(exp_value as i32);
} else {
exponent = exp_value as i32;
}
}
}
// Take the uncertainty
let mut uncertainty_set = false;
let mut uncertainty = 0;
if text.len() > chars_to_remove && text.chars().nth(chars_to_remove).unwrap() == '(' {
uncertainty_set = true;
chars_to_remove += 1;
for c in text.chars().skip(chars_to_remove) {
if let Some(num) = c.to_digit(10) {
uncertainty *= 10;
uncertainty += num;
chars_to_remove += 1;