pub fn encoding_error_raw<S: AsRef<str>>(description: S) -> IonError
Expand description

A convenience method for creating an IonError::EncodingError with the provided operation text. Useful for calling Option#ok_or_else.