Struct glsl::syntax::TypeName [−][src]
pub struct TypeName(pub String);
Any type name.
Implementations
impl TypeName
[src]
impl TypeName
[src]pub fn new<N>(name: N) -> Result<Self, IdentifierError> where
N: Into<String>,
[src]
N: Into<String>,
Create a new TypeName
.
Errors
This function will fail if the type name starts with a digit or contains non-alphanumeric ASCII characters.
pub fn as_str(&self) -> &str
[src]
Get the string representation of the type name.