Struct glsl_lang_types::ast::ArrayedIdentifierData
source · pub struct ArrayedIdentifierData {
pub ident: Identifier,
pub array_spec: Option<ArraySpecifier>,
}Expand description
An identifier with an optional array specifier.
Fields§
§ident: IdentifierRaw identifier
array_spec: Option<ArraySpecifier>Attached array specification
Implementations§
source§impl ArrayedIdentifierData
impl ArrayedIdentifierData
sourcepub fn new<I, AS>(ident: I, array_spec: AS) -> Self
pub fn new<I, AS>(ident: I, array_spec: AS) -> Self
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§impl From<Node<ArrayedIdentifierData>> for ArrayedIdentifierData
impl From<Node<ArrayedIdentifierData>> for ArrayedIdentifierData
source§fn from(node: Node<ArrayedIdentifierData>) -> Self
fn from(node: Node<ArrayedIdentifierData>) -> Self
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 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 Freeze for ArrayedIdentifierData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)