Struct boreal_parser::Identifier
source · pub struct Identifier {
pub name: String,
pub name_span: Range<usize>,
pub operations: Vec<IdentifierOperation>,
}Expand description
Parsed identifier used in expressions.
Fields§
§name: StringName of the identifier
name_span: Range<usize>Span covering the name of the identifier.
operations: Vec<IdentifierOperation>Operations on the identifier, stored in the order of operations.
For example, pe.sections[2].name would give pe for the name, and
[Subfield("sections"), Subscript(Expr::Integer(2)), Subfield("name")] for the operations.
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 PartialEq<Identifier> for Identifier
impl PartialEq<Identifier> 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 ==.