Enum vk_parse::ExtensionChild
source · #[non_exhaustive]
pub enum ExtensionChild {
Require {
api: Option<String>,
profile: Option<String>,
extension: Option<String>,
feature: Option<String>,
comment: Option<String>,
depends: Option<String>,
items: Vec<InterfaceItem>,
},
Remove {
api: Option<String>,
profile: Option<String>,
comment: Option<String>,
items: Vec<InterfaceItem>,
},
}Expand description
A part of an extension declaration.
Extensions either include functionality from the spec, or remove some functionality.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Require
Fields
§
items: Vec<InterfaceItem>The items which form this require block.
Indicates the items which this extension requires to work.
Remove
Fields
§
items: Vec<InterfaceItem>Indicates the items this extension removes.
Trait Implementations§
source§impl Clone for ExtensionChild
impl Clone for ExtensionChild
source§fn clone(&self) -> ExtensionChild
fn clone(&self) -> ExtensionChild
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ExtensionChild
impl Debug for ExtensionChild
source§impl PartialEq<ExtensionChild> for ExtensionChild
impl PartialEq<ExtensionChild> for ExtensionChild
source§fn eq(&self, other: &ExtensionChild) -> bool
fn eq(&self, other: &ExtensionChild) -> bool
This method tests for
self and other values to be equal, and is used
by ==.