Trait TypedVulkanSinkStructure

Source
pub unsafe trait TypedVulkanSinkStructure: VulkanSinkStructure + Sized {
    const TYPE: VkStructureType;

    // Provided methods
    fn uninit_sink() -> MaybeUninit<Self> { ... }
    fn try_from_generic(g: &GenericVulkanSinkStructure) -> Option<&Self> { ... }
}

Required Associated Constants§

Source

const TYPE: VkStructureType

sType constant for this structure.

Provided Methods§

Source

fn uninit_sink() -> MaybeUninit<Self>

Constructs an uninitialized cell for this structure, that is ready to pass the api

Source

fn try_from_generic(g: &GenericVulkanSinkStructure) -> Option<&Self>

Cast structure ref only if sType matches

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> TypedVulkanSinkStructure for &mut T

Source§

const TYPE: VkStructureType = T::TYPE

Source§

impl<T> TypedVulkanSinkStructure for Box<T>

Source§

const TYPE: VkStructureType = T::TYPE

Implementors§