/// Wraps the given return code as a Result: positive values are propagated through; negative
/// values are turned into an `Error`.
Wraps the given return code as a Result: positive values are propagated through; negative
values are turned into an `Error`.
Wraps the given return code as a Result : positive values are propagated through ; negative values are turned into an ` Error ` .
pub(crate) fn wrap(raw: libc::c_int) -> Result<libc::c_int, Error> {
        if raw < 0 {
            return Err(Error(raw));
        }
        Ok(raw)
    }
pub ( crate ) fn wrap ( raw : libc :: c_int ) -> Result < libc :: c_int , Error > { if raw < 0 { return Err ( Error ( raw ) ) ; } Ok ( raw ) }
Wraps the given return code as a Result: positive values are propagated through; negative
values are turned into an `Error`.
Wraps the given return code as a Result : positive values are propagated through ; negative values are turned into an ` Error ` .
raw
libc::c_int