Skip to main content

VulkanExceptionExtensions

Trait VulkanExceptionExtensions 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl VulkanExceptionExtensions for Result

Implementors§