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
Indicates the items which this extension requires to work.
Fields
§
items: Vec<InterfaceItem>
The items which form this require block.
Remove
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 for ExtensionChild
impl PartialEq 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 ==
.impl Eq for ExtensionChild
impl StructuralPartialEq for ExtensionChild
Auto Trait Implementations§
impl Freeze for ExtensionChild
impl RefUnwindSafe for ExtensionChild
impl Send for ExtensionChild
impl Sync for ExtensionChild
impl Unpin for ExtensionChild
impl UnwindSafe for ExtensionChild
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more