pub unsafe trait TypedVulkanStructure: VulkanStructure + Sized {
const TYPE: VkStructureType;
// Provided method
fn try_from_generic(g: &GenericVulkanStructure) -> Option<&Self> { ... }
}Required Associated Constants§
Sourceconst TYPE: VkStructureType
const TYPE: VkStructureType
sType of this structure
Provided Methods§
Sourcefn try_from_generic(g: &GenericVulkanStructure) -> Option<&Self>
fn try_from_generic(g: &GenericVulkanStructure) -> 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.