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<'de> Deserialize<'de> for ArrayedIdentifierData
impl<'de> Deserialize<'de> for ArrayedIdentifierData
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArrayedIdentifierData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArrayedIdentifierData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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§impl Serialize for ArrayedIdentifierData
impl Serialize for ArrayedIdentifierData
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more