/// Create a new ArrowError with a given ErrorKind.
Create a new ArrowError with a given ErrorKind.
Create a new ArrowError with a given ErrorKind .
fn new<T>(kind: ErrorKind, val: T) -> ArrowError
        where ArrowError: From<T> {
        let err = ArrowError::from(val);
        ArrowError {
            kind: kind,
            msg:  err.msg
        }
    }
fn new < T > ( kind : ErrorKind , val : T ) -> ArrowError where ArrowError : From < T > { let err = ArrowError :: from ( val ) ; ArrowError { kind : kind , msg : err . msg } }
Create a new ArrowError with a given ErrorKind.
Create a new ArrowError with a given ErrorKind .
kind
ErrorKind
val
T