Struct ketos::lexer::Span [] [src]

pub struct Span {
    pub lo: BytePos,
    pub hi: BytePos,
}

Represents a beginning and end point within a body of text.

Fields

First byte of range

One byte past the end of range

Methods

impl Span
[src]

Returns an empty Span at the given offset.

Returns a Span spanning a single char.

Returns a Span spanning a single byte.

Trait Implementations

impl Copy for Span
[src]

impl Clone for Span
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Span
[src]

Formats the value using the given formatter.

impl Eq for Span
[src]

impl PartialEq for Span
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.