pub fn check_err<T: Ord + Default>(num: T) -> Result<T> {
    if num < T::default() {
        return Err(PyroscopeError::from(std::io::Error::last_os_error()));
    }
    Ok(num)
}
/// Error Wrapper for libc return. Only check for errors.
Error Wrapper for libc return. Only check for errors.
Error Wrapper for libc return . Only check for errors .
pub fn check_err<T: Ord + Default>(num: T) -> Result<T> {
    if num < T::default() {
        return Err(PyroscopeError::from(std::io::Error::last_os_error()));
    }
    Ok(num)
}
pub fn check_err < T : Ord + Default > ( num : T ) -> Result < T > { if num < T :: default ( ) { return Err ( PyroscopeError :: from ( std :: io :: Error :: last_os_error ( ) ) ) ; } Ok ( num ) }
Error Wrapper for libc return.
Error Wrapper for libc return .
num
T
num
T