Struct glsl_lang::ast::TypeNameData
source · [−]pub struct TypeNameData(pub SmolStr);
Expand description
Any type name.
Tuple Fields
0: SmolStr
Implementations
sourceimpl TypeNameData
impl TypeNameData
Trait Implementations
sourceimpl Clone for TypeNameData
impl Clone for TypeNameData
sourcefn clone(&self) -> TypeNameData
fn clone(&self) -> TypeNameData
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 TypeNameData
impl Debug for TypeNameData
sourceimpl Display for TypeNameData
impl Display for TypeNameData
sourceimpl<'_> From<&'_ str> for TypeNameData
impl<'_> From<&'_ str> for TypeNameData
sourcefn from(ident: &str) -> TypeNameData
fn from(ident: &str) -> TypeNameData
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<TypeNameData>> for TypeNameData
impl From<Node<TypeNameData>> for TypeNameData
sourcefn from(node: Node<TypeNameData>) -> TypeNameData
fn from(node: Node<TypeNameData>) -> TypeNameData
Converts to this type from the input type.
sourceimpl Hash for TypeNameData
impl Hash for TypeNameData
sourceimpl NodeContent for TypeNameData
impl NodeContent for TypeNameData
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 TypeNameData
impl NodeContentDisplay for TypeNameData
sourceimpl PartialEq<TypeNameData> for TypeNameData
impl PartialEq<TypeNameData> for TypeNameData
sourcefn eq(&self, other: &TypeNameData) -> bool
fn eq(&self, other: &TypeNameData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TypeNameData) -> bool
fn ne(&self, other: &TypeNameData) -> bool
This method tests for !=
.
sourceimpl PartialOrd<TypeNameData> for TypeNameData
impl PartialOrd<TypeNameData> for TypeNameData
sourcefn partial_cmp(&self, other: &TypeNameData) -> Option<Ordering>
fn partial_cmp(&self, other: &TypeNameData) -> 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 TypeNameData
Auto Trait Implementations
impl RefUnwindSafe for TypeNameData
impl Send for TypeNameData
impl Sync for TypeNameData
impl Unpin for TypeNameData
impl UnwindSafe for TypeNameData
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