fn call(err: ERR) -> Result<()> {
    if err >= 0 {
        Ok(())
    } else {
        Err(match err {
            WMP_errFail => Fail,
            WMP_errNotYetImplemented => NotYetImplemented,
            WMP_errAbstractMethod => AbstractMethod,
            WMP_errOutOfMemory => OutOfMemory,
            WMP_errFileIO => FileIO,
            WMP_errBufferOverflow => BufferOverflow,
            WMP_errInvalidParameter => InvalidParameter,
            WMP_errInvalidArgument => InvalidArgument,
            WMP_errUnsupportedFormat => UnsupportedFormat,
            WMP_errIncorrectCodecVersion => IncorrectCodecVersion,
            WMP_errIndexNotFound => IndexNotFound,
            WMP_errOutOfSequence => OutOfSequence,
            WMP_errNotInitialized => NotInitialized,
            WMP_errMustBeMultipleOf16LinesUntilLastCall => MustBeMultipleOf16LinesUntilLastCall,
            WMP_errPlanarAlphaBandedEncRequiresTempFile => PlanarAlphaBandedEncRequiresTempFile,
            WMP_errAlphaModeCannotBeTranscoded => AlphaModeCannotBeTranscoded,
            WMP_errIncorrectCodecSubVersion => IncorrectCodecSubVersion,
            _ => UnknownError
        })
    }
}
///
/// Internal helper: wrap C calls with a ?-friendly Result.
/// 
Internal helper: wrap C calls with a ?-friendly Result.
Internal helper : wrap C calls with a ? - friendly Result .
fn call(err: ERR) -> Result<()> {
    if err >= 0 {
        Ok(())
    } else {
        Err(match err {
            WMP_errFail => Fail,
            WMP_errNotYetImplemented => NotYetImplemented,
            WMP_errAbstractMethod => AbstractMethod,
            WMP_errOutOfMemory => OutOfMemory,
            WMP_errFileIO => FileIO,
            WMP_errBufferOverflow => BufferOverflow,
            WMP_errInvalidParameter => InvalidParameter,
            WMP_errInvalidArgument => InvalidArgument,
            WMP_errUnsupportedFormat => UnsupportedFormat,
            WMP_errIncorrectCodecVersion => IncorrectCodecVersion,
            WMP_errIndexNotFound => IndexNotFound,
            WMP_errOutOfSequence => OutOfSequence,
            WMP_errNotInitialized => NotInitialized,
            WMP_errMustBeMultipleOf16LinesUntilLastCall => MustBeMultipleOf16LinesUntilLastCall,
            WMP_errPlanarAlphaBandedEncRequiresTempFile => PlanarAlphaBandedEncRequiresTempFile,
            WMP_errAlphaModeCannotBeTranscoded => AlphaModeCannotBeTranscoded,
            WMP_errIncorrectCodecSubVersion => IncorrectCodecSubVersion,
            _ => UnknownError
        })
    }
}
fn call ( err : ERR ) -> Result < ( ) > { if err >= 0 { Ok ( ( ) ) } else { Err ( match err { WMP_errFail => Fail , WMP_errNotYetImplemented => NotYetImplemented , WMP_errAbstractMethod => AbstractMethod , WMP_errOutOfMemory => OutOfMemory , WMP_errFileIO => FileIO , WMP_errBufferOverflow => BufferOverflow , WMP_errInvalidParameter => InvalidParameter , WMP_errInvalidArgument => InvalidArgument , WMP_errUnsupportedFormat => UnsupportedFormat , WMP_errIncorrectCodecVersion => IncorrectCodecVersion , WMP_errIndexNotFound => IndexNotFound , WMP_errOutOfSequence => OutOfSequence , WMP_errNotInitialized => NotInitialized , WMP_errMustBeMultipleOf16LinesUntilLastCall => MustBeMultipleOf16LinesUntilLastCall , WMP_errPlanarAlphaBandedEncRequiresTempFile => PlanarAlphaBandedEncRequiresTempFile , WMP_errAlphaModeCannotBeTranscoded => AlphaModeCannotBeTranscoded , WMP_errIncorrectCodecSubVersion => IncorrectCodecSubVersion , _ => UnknownError } ) } }
Internal helper: wrap C calls with a ?-friendly Result.
Internal helper : wrap C calls with a ? - friendly Result .
err
ERR
err
ERR