pub trait ToResult { fn to_result(self) -> Result<()>; }
Converts raw C CUresult into Rust-ified Result type
Copied from Rustacuda, because visibility is constrained to crate scope.