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 duplicate 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 for Identifier
impl PartialEq for Identifier
impl StructuralPartialEq for Identifier
Auto Trait Implementations§
impl Freeze for Identifier
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