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>
pub fn new<N>(name: N) -> Result<Self, IdentifierError>
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.
source§impl From<String> for Identifier
impl From<String> for Identifier
source§impl Host for Identifier
impl Host for Identifier
source§impl HostMut for Identifier
impl HostMut for Identifier
source§fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
Visit an AST node.
source§impl Parse for Identifier
impl Parse for Identifier
source§impl PartialEq for Identifier
impl PartialEq for Identifier
source§fn eq(&self, other: &Identifier) -> bool
fn eq(&self, other: &Identifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Identifier
Auto Trait Implementations§
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more