[][src]Struct glsl::syntax::Identifier

pub struct Identifier(pub String);

A generic identifier.

Methods

impl Identifier[src]

pub fn new<N>(name: N) -> Result<Self, IdentifierError> where
    N: Into<String>, 
[src]

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 Debug for Identifier[src]

impl Display for Identifier[src]

impl<'a> From<&'a str> for Identifier[src]

impl From<Identifier> for ArrayedIdentifier[src]

impl From<String> for Identifier[src]

impl Host for Identifier[src]

impl Parse for Identifier[src]

impl PartialEq<Identifier> for Identifier[src]

impl StructuralPartialEq for Identifier[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.