fn new<E>(kind: CfiErrorKind, source: E) -> Self
    where
        E: Into<Box<dyn Error + Send + Sync>>,
    {
        let source = Some(source.into());
        Self { kind, source }
    }
/// Creates a new CFI error from a known kind of error as well as an
/// arbitrary error payload.
Creates a new CFI error from a known kind of error as well as an
arbitrary error payload.
Creates a new CFI error from a known kind of error as well as an arbitrary error payload .
fn new<E>(kind: CfiErrorKind, source: E) -> Self
    where
        E: Into<Box<dyn Error + Send + Sync>>,
    {
        let source = Some(source.into());
        Self { kind, source }
    }
fn new < E > ( kind : CfiErrorKind , source : E ) -> Self where E : Into < Box < dyn Error + Send + Sync > > , { let source = Some ( source . into ( ) ) ; Self { kind , source } }
Creates a new CFI error from a known kind of error as well as an
arbitrary error payload.
Creates a new CFI error from a known kind of error as well as an arbitrary error payload .
kind
CfiErrorKind
source
E
kind
CfiErrorKind
source
E