Struct glsl_lang::ast::IdentifierData
source · [−]pub struct IdentifierData(pub SmolStr);
Expand description
A generic identifier.
Tuple Fields
0: SmolStr
Implementations
sourceimpl IdentifierData
impl IdentifierData
Trait Implementations
sourceimpl Clone for IdentifierData
impl Clone for IdentifierData
sourcefn clone(&self) -> IdentifierData
fn clone(&self) -> IdentifierData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IdentifierData
impl Debug for IdentifierData
sourceimpl Display for IdentifierData
impl Display for IdentifierData
sourceimpl<'_> From<&'_ str> for IdentifierData
impl<'_> From<&'_ str> for IdentifierData
sourcefn from(ident: &str) -> IdentifierData
fn from(ident: &str) -> IdentifierData
Converts to this type from the input type.
sourceimpl From<IdentifierData> for TypeNameData
impl From<IdentifierData> for TypeNameData
sourcefn from(ident: IdentifierData) -> TypeNameData
fn from(ident: IdentifierData) -> TypeNameData
Converts to this type from the input type.
sourceimpl From<Node<IdentifierData>> for IdentifierData
impl From<Node<IdentifierData>> for IdentifierData
sourcefn from(node: Node<IdentifierData>) -> IdentifierData
fn from(node: Node<IdentifierData>) -> IdentifierData
Converts to this type from the input type.
sourceimpl Hash for IdentifierData
impl Hash for IdentifierData
sourceimpl NodeContent for IdentifierData
impl NodeContent for IdentifierData
sourcefn into_node<T>(self) -> Node<T> where
T: From<Self> + NodeContent,
fn into_node<T>(self) -> Node<T> where
T: From<Self> + NodeContent,
Convert the contents into a node
sourcefn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
sourceimpl NodeContentDisplay for IdentifierData
impl NodeContentDisplay for IdentifierData
sourceimpl PartialEq<IdentifierData> for IdentifierData
impl PartialEq<IdentifierData> for IdentifierData
sourcefn eq(&self, other: &IdentifierData) -> bool
fn eq(&self, other: &IdentifierData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IdentifierData) -> bool
fn ne(&self, other: &IdentifierData) -> bool
This method tests for !=
.
sourceimpl PartialOrd<IdentifierData> for IdentifierData
impl PartialOrd<IdentifierData> for IdentifierData
sourcefn partial_cmp(&self, other: &IdentifierData) -> Option<Ordering>
fn partial_cmp(&self, other: &IdentifierData) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StructuralPartialEq for IdentifierData
Auto Trait Implementations
impl RefUnwindSafe for IdentifierData
impl Send for IdentifierData
impl Sync for IdentifierData
impl Unpin for IdentifierData
impl UnwindSafe for IdentifierData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> NodeDisplay for T where
T: NodeContentDisplay,
impl<T> NodeDisplay for T where
T: NodeContentDisplay,
sourcefn display(&self) -> NodeDisplayWrapper<'_, T>
fn display(&self) -> NodeDisplayWrapper<'_, T>
Obtain a display wrapper for the current node