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>,
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
Indicates the items this extension removes.
Trait Implementations
sourceimpl Clone for ExtensionChild
impl Clone for ExtensionChild
sourcefn clone(&self) -> ExtensionChild
fn clone(&self) -> ExtensionChild
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ExtensionChild
impl Debug for ExtensionChild
sourceimpl PartialEq<ExtensionChild> for ExtensionChild
impl PartialEq<ExtensionChild> for ExtensionChild
sourcefn 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 ==. Read more
impl Eq for ExtensionChild
impl StructuralEq for ExtensionChild
impl StructuralPartialEq for ExtensionChild
Auto Trait Implementations
impl RefUnwindSafe for ExtensionChild
impl Send for ExtensionChild
impl Sync for ExtensionChild
impl Unpin for ExtensionChild
impl UnwindSafe for ExtensionChild
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more