Struct glsl_lang::ast::ArrayedIdentifierData
source · pub struct ArrayedIdentifierData {
pub ident: Node<IdentifierData>,
pub array_spec: Option<Node<ArraySpecifierData>>,
}
Expand description
An identifier with an optional array specifier.
Fields§
§ident: Node<IdentifierData>
Raw identifier
array_spec: Option<Node<ArraySpecifierData>>
Attached array specification
Implementations§
source§impl ArrayedIdentifierData
impl ArrayedIdentifierData
sourcepub fn new<I, AS>(ident: I, array_spec: AS) -> ArrayedIdentifierData
pub fn new<I, AS>(ident: I, array_spec: AS) -> ArrayedIdentifierData
Create a new ArrayedIdentifier from a raw identifier and a specification
Trait Implementations§
source§impl Clone for ArrayedIdentifierData
impl Clone for ArrayedIdentifierData
source§fn clone(&self) -> ArrayedIdentifierData
fn clone(&self) -> ArrayedIdentifierData
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 ArrayedIdentifierData
impl Debug for ArrayedIdentifierData
source§impl From<&str> for ArrayedIdentifierData
impl From<&str> for ArrayedIdentifierData
source§fn from(ident: &str) -> ArrayedIdentifierData
fn from(ident: &str) -> ArrayedIdentifierData
Converts to this type from the input type.
source§impl From<Node<ArrayedIdentifierData>> for ArrayedIdentifierData
impl From<Node<ArrayedIdentifierData>> for ArrayedIdentifierData
source§fn from(node: Node<ArrayedIdentifierData>) -> ArrayedIdentifierData
fn from(node: Node<ArrayedIdentifierData>) -> ArrayedIdentifierData
Converts to this type from the input type.
source§impl NodeContent for ArrayedIdentifierData
impl NodeContent for ArrayedIdentifierData
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 ArrayedIdentifierData
impl NodeContentDisplay for ArrayedIdentifierData
source§impl PartialEq for ArrayedIdentifierData
impl PartialEq for ArrayedIdentifierData
source§fn eq(&self, other: &ArrayedIdentifierData) -> bool
fn eq(&self, other: &ArrayedIdentifierData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ArrayedIdentifierData
Auto Trait Implementations§
impl RefUnwindSafe for ArrayedIdentifierData
impl Send for ArrayedIdentifierData
impl Sync for ArrayedIdentifierData
impl Unpin for ArrayedIdentifierData
impl UnwindSafe for ArrayedIdentifierData
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