Struct gluon_base::source::Source [] [src]

pub struct Source<'a> { /* fields omitted */ }

Type which provides a bidirectional mapping between byte offsets and line and column locations

Methods

impl<'a> Source<'a>
[src]

Returns the string which defines the source

Returns the byte offset and source of line_number

Returns the line number and the source at byte

Returns which line byte points to

Returns the line and column location of byte

Trait Implementations

impl<'a> Clone for Source<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for Source<'a>
[src]

Formats the value using the given formatter.