Struct glsl::syntax::ArrayedIdentifier
source · pub struct ArrayedIdentifier {
pub ident: Identifier,
pub array_spec: Option<ArraySpecifier>,
}
Expand description
An identifier with an optional array specifier.
Fields§
§ident: Identifier
§array_spec: Option<ArraySpecifier>
Implementations§
source§impl ArrayedIdentifier
impl ArrayedIdentifier
pub fn new<I>(ident: I, array_spec: Option<ArraySpecifier>) -> Selfwhere
I: Into<Identifier>,
Trait Implementations§
source§impl Clone for ArrayedIdentifier
impl Clone for ArrayedIdentifier
source§fn clone(&self) -> ArrayedIdentifier
fn clone(&self) -> ArrayedIdentifier
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 ArrayedIdentifier
impl Debug for ArrayedIdentifier
source§impl<'a> From<&'a str> for ArrayedIdentifier
impl<'a> From<&'a str> for ArrayedIdentifier
source§impl From<Identifier> for ArrayedIdentifier
impl From<Identifier> for ArrayedIdentifier
source§fn from(ident: Identifier) -> Self
fn from(ident: Identifier) -> Self
Converts to this type from the input type.