Struct boa::syntax::ast::position::Position [−][src]
pub struct Position { /* fields omitted */ }Expand description
A position in the JavaScript source code.
Stores both the column number and the line number.
Note that spans are of the form [begining, end) i.e. that the begining position is inclusive and the end position is exclusive. See test check_positions from syntax/lexer/tests.rs for an example.
Similar Implementations
Implementations
Gets the line number of the position.
Gets the column number of the position.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Position
impl UnwindSafe for Position
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.