Struct glsl::syntax::Identifier [−][src]
pub struct Identifier(pub String);
A generic identifier.
Implementations
impl Identifier
[src]
impl Identifier
[src]pub fn new<N>(name: N) -> Result<Self, IdentifierError> where
N: Into<String>,
[src]
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.
pub fn as_str(&self) -> &str
[src]
Get the string representation of the identifier.
Trait Implementations
impl Clone for Identifier
[src]
impl Clone for Identifier
[src]fn clone(&self) -> Identifier
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<Identifier> for ArrayedIdentifier
[src]
impl From<Identifier> for ArrayedIdentifier
[src]fn from(ident: Identifier) -> Self
[src]
impl Parse for Identifier
[src]
impl Parse for Identifier
[src]impl PartialEq<Identifier> for Identifier
[src]
impl PartialEq<Identifier> for Identifier
[src]