Struct glsl_lang::ast::IdentifierData[][src]

pub struct IdentifierData(pub SmolStr);

A generic identifier.

Implementations

impl IdentifierData[src]

pub fn as_rs_ident(&self) -> Option<&str>[src]

Parses this identifier as a glsl-lang-quote Rust identifier

Returns

None if this identifier is not a Rust identifier, otherwise returns the parsed identifier.

pub fn as_str(&self) -> &str[src]

Returns this identifier as a string slice

Trait Implementations

impl Clone for IdentifierData[src]

impl Debug for IdentifierData[src]

impl Display for IdentifierData[src]

impl From<&'_ str> for IdentifierData[src]

impl From<IdentifierData> for TypeNameData[src]

impl NodeContent for IdentifierData[src]

impl NodeContentDisplay for IdentifierData[src]

impl NodeContentEq for IdentifierData[src]

impl PartialEq<IdentifierData> for IdentifierData[src]

impl StructuralPartialEq for IdentifierData[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> IntoResult<T> for T[src]

type Err = Infallible

impl<T> NodeDisplay for T where
    T: NodeContentDisplay
[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.