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§
Sourceconst TYPE: VkStructureType
const TYPE: VkStructureType
sType constant for this structure.
Provided Methods§
Sourcefn uninit_sink() -> MaybeUninit<Self>
fn uninit_sink() -> MaybeUninit<Self>
Constructs an uninitialized cell for this structure, that is ready to pass the api
Sourcefn try_from_generic(g: &GenericVulkanSinkStructure) -> Option<&Self>
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.