Struct glsl_lang::ast::StructSpecifierData
source · [−]pub struct StructSpecifierData {
pub name: Option<Node<TypeNameData>>,
pub fields: Vec<Node<StructFieldSpecifierData>, Global>,
}
Expand description
Struct specifier. Used to create new, user-defined types.
Fields
name: Option<Node<TypeNameData>>
Structure name
fields: Vec<Node<StructFieldSpecifierData>, Global>
Field specifications
Trait Implementations
sourceimpl Clone for StructSpecifierData
impl Clone for StructSpecifierData
sourcefn clone(&self) -> StructSpecifierData
fn clone(&self) -> StructSpecifierData
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 StructSpecifierData
impl Debug for StructSpecifierData
sourceimpl From<Node<StructSpecifierData>> for StructSpecifierData
impl From<Node<StructSpecifierData>> for StructSpecifierData
sourcefn from(node: Node<StructSpecifierData>) -> StructSpecifierData
fn from(node: Node<StructSpecifierData>) -> StructSpecifierData
Converts to this type from the input type.
sourceimpl NodeContent for StructSpecifierData
impl NodeContent for StructSpecifierData
sourcefn 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
sourcefn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
sourceimpl NodeContentDisplay for StructSpecifierData
impl NodeContentDisplay for StructSpecifierData
sourceimpl PartialEq<StructSpecifierData> for StructSpecifierData
impl PartialEq<StructSpecifierData> for StructSpecifierData
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &StructSpecifierData) -> bool
fn ne(&self, other: &StructSpecifierData) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> NodeDisplay for T where
T: NodeContentDisplay,
impl<T> NodeDisplay for T where
T: NodeContentDisplay,
sourcefn display(&self) -> NodeDisplayWrapper<'_, T>
fn display(&self) -> NodeDisplayWrapper<'_, T>
Obtain a display wrapper for the current node