Struct combine::stream::position::SourcePosition [−][src]
Expand description
Struct which represents a position in a source file.
Fields
line: i32
Current line of the input
column: i32
Current column of the input
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
type Position = SourcePosition
type Position = SourcePosition
The type which keeps track of the position
type Checkpoint = Self
Returns the current position
Updates the position given that token
has been taken from the stream
type Position = SourcePosition
type Position = SourcePosition
The type which keeps track of the position
type Checkpoint = Self
Returns the current position
Updates the position given that token
has been taken from the stream
Updates the position given that range
has been taken from the stream
Auto Trait Implementations
impl RefUnwindSafe for SourcePosition
impl Send for SourcePosition
impl Sync for SourcePosition
impl Unpin for SourcePosition
impl UnwindSafe for SourcePosition
Blanket Implementations
Mutably borrows from an owned value. Read more