pub struct Position {
pub start: Point,
pub end: Point,
}Expand description
Location of a node in a source file.
Fields§
§start: PointRepresents the place of the first character of the parsed source region.
end: PointRepresents the place of the first character after the parsed source region, whether it exists or not.
Implementations§
Trait Implementations§
impl Eq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
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