Struct glsl_lang::ast::StructSpecifierData
source · pub struct StructSpecifierData {
pub name: Option<Node<TypeNameData>>,
pub fields: Vec<Node<StructFieldSpecifierData>>,
}
Expand description
Struct specifier. Used to create new, user-defined types.
Fields§
§name: Option<Node<TypeNameData>>
Structure name
fields: Vec<Node<StructFieldSpecifierData>>
Field specifications
Trait Implementations§
source§impl Clone for StructSpecifierData
impl Clone for StructSpecifierData
source§fn clone(&self) -> StructSpecifierData
fn clone(&self) -> StructSpecifierData
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 StructSpecifierData
impl Debug for StructSpecifierData
source§impl From<Node<StructSpecifierData>> for StructSpecifierData
impl From<Node<StructSpecifierData>> for StructSpecifierData
source§fn from(node: Node<StructSpecifierData>) -> StructSpecifierData
fn from(node: Node<StructSpecifierData>) -> StructSpecifierData
Converts to this type from the input type.
source§impl NodeContent for StructSpecifierData
impl NodeContent for StructSpecifierData
source§fn into_node<T>(self) -> Node<T>where
T: From<Self> + NodeContent,
fn into_node<T>(self) -> Node<T>where
T: From<Self> + NodeContent,
Convert the contents into a node
source§fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
source§impl NodeContentDisplay for StructSpecifierData
impl NodeContentDisplay for StructSpecifierData
source§impl PartialEq for StructSpecifierData
impl PartialEq for StructSpecifierData
source§fn eq(&self, other: &StructSpecifierData) -> bool
fn eq(&self, other: &StructSpecifierData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StructSpecifierData
Auto Trait Implementations§
impl RefUnwindSafe for StructSpecifierData
impl Send for StructSpecifierData
impl Sync for StructSpecifierData
impl Unpin for StructSpecifierData
impl UnwindSafe for StructSpecifierData
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