Struct glsl::syntax::Identifier
source · pub struct Identifier(pub String);
Expand description
A generic identifier.
Tuple Fields§
§0: String
Implementations§
source§impl Identifier
impl Identifier
sourcepub fn new<N>(name: N) -> Result<Self, IdentifierError>where
N: Into<String>,
pub fn new<N>(name: N) -> Result<Self, IdentifierError>where
N: Into<String>,
Create a new Identifier
.
Errors
This function will fail if the identifier starts with a digit or contains non-alphanumeric ASCII characters.
Trait Implementations§
source§impl Clone for Identifier
impl Clone for Identifier
source§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
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 Identifier
impl Debug for Identifier
source§impl Display for Identifier
impl Display for Identifier
source§impl<'a> From<&'a str> for Identifier
impl<'a> From<&'a str> for Identifier
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.