Struct parser_database::ast::Identifier
source · pub struct Identifier {
pub name: String,
pub span: Span,
}
Expand description
An identifier.
Fields§
§name: String
The identifier contents.
span: Span
The span of the AST node.
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<T> From<Pair<'_, T>> for Identifierwhere
T: RuleType,
impl<T> From<Pair<'_, T>> for Identifierwhere T: RuleType,
source§fn from(pair: Pair<'_, T>) -> Identifier
fn from(pair: Pair<'_, T>) -> Identifier
Converts to this type from the input type.
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