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
sourceimpl ArrayedIdentifierData
impl ArrayedIdentifierData
sourcepub fn new<I, AS>(ident: I, array_spec: AS) -> ArrayedIdentifierData where
I: Into<Node<IdentifierData>>,
AS: Into<Option<Node<ArraySpecifierData>>>,
pub fn new<I, AS>(ident: I, array_spec: AS) -> ArrayedIdentifierData where
I: Into<Node<IdentifierData>>,
AS: Into<Option<Node<ArraySpecifierData>>>,
Create a new ArrayedIdentifier from a raw identifier and a specification
Trait Implementations
sourceimpl Clone for ArrayedIdentifierData
impl Clone for ArrayedIdentifierData
sourcefn clone(&self) -> ArrayedIdentifierData
fn clone(&self) -> ArrayedIdentifierData
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 ArrayedIdentifierData
impl Debug for ArrayedIdentifierData
sourceimpl<'_> From<&'_ str> for ArrayedIdentifierData
impl<'_> From<&'_ str> for ArrayedIdentifierData
sourcefn from(ident: &str) -> ArrayedIdentifierData
fn from(ident: &str) -> ArrayedIdentifierData
Converts to this type from the input type.
sourceimpl From<Node<ArrayedIdentifierData>> for ArrayedIdentifierData
impl From<Node<ArrayedIdentifierData>> for ArrayedIdentifierData
sourcefn from(node: Node<ArrayedIdentifierData>) -> ArrayedIdentifierData
fn from(node: Node<ArrayedIdentifierData>) -> ArrayedIdentifierData
Converts to this type from the input type.
sourceimpl NodeContent for ArrayedIdentifierData
impl NodeContent for ArrayedIdentifierData
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 ArrayedIdentifierData
impl NodeContentDisplay for ArrayedIdentifierData
sourceimpl PartialEq<ArrayedIdentifierData> for ArrayedIdentifierData
impl PartialEq<ArrayedIdentifierData> for ArrayedIdentifierData
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ArrayedIdentifierData) -> bool
fn ne(&self, other: &ArrayedIdentifierData) -> bool
This method tests for !=
.
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
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