Skip to main content

VulkanResultExtensions

Trait VulkanResultExtensions 

Source
pub trait VulkanResultExtensions<T> {
    // Required method
    fn throw_on_error(self, func_name: &str) -> Result<T, VulkanException>;
}
Expand description

Names the function whose result a failure is.

Required Methods§

Source

fn throw_on_error(self, func_name: &str) -> Result<T, VulkanException>

The value, or the failure of the function func_name.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> VulkanResultExtensions<T> for Result<T, Result>

Source§

fn throw_on_error(self, func_name: &str) -> Result<T, VulkanException>

Implementors§