pub fn wrap_other(source: impl Error + 'static, description: impl Into<String>) -> Self {
        Self {
            description: description.into(),
            source: Some(Source::Other(Box::new(source))),
        }
    }
/// Wrap a new `ParseError` around an existing one.
///
/// # Arguments
///
/// * `description`: What's wrong at the moment of creation.
/// * `parse_error`: What caused this `ParseError`.
///
/// # Return value
///
/// A new `ParseError` instance with a `ParseError` cause.
Wrap a new `ParseError` around an existing one.
Wrap a new ` ParseError ` around an existing one .
pub fn wrap_other(source: impl Error + 'static, description: impl Into<String>) -> Self {
        Self {
            description: description.into(),
            source: Some(Source::Other(Box::new(source))),
        }
    }
pub fn wrap_other ( source : impl Error + ' static , description : impl Into < String > ) -> Self { Self { description : description . into ( ) , source : Some ( Source :: Other ( Box :: new ( source ) ) ) , } }
Wrap a new `ParseError` around an existing one.
Wrap a new ` ParseError ` around an existing one .
source
impl Error + 'static
description
impl Into<String>
source
impl Error + 'static
description
impl Into<String>
return value
A new `ParseError` instance with a `ParseError` cause.
A new ` ParseError ` instance with a ` ParseError ` cause .