pub fn solve_variant<'de, P>(
shape: &'static Shape,
parser: &mut P,
) -> Result<Option<SolveOutcome>, SolveVariantError<P::Error>>where
P: FormatParser<'de>,Expand description
Attempt to solve which enum variant matches the input.
Returns Ok(Some(_)) if a unique variant was found, Ok(None) if
no variant matched, or Err(_) on error.