pub trait VulkanExceptionExtensions {
// Required method
fn throw_on_error(self, func_name: &str) -> Result<(), VulkanException>;
}Expand description
Turns every result but VK_SUCCESS into a failure.
Required Methods§
Sourcefn throw_on_error(self, func_name: &str) -> Result<(), VulkanException>
fn throw_on_error(self, func_name: &str) -> Result<(), VulkanException>
The failure of the function func_name, unless the result is
VK_SUCCESS.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".