Struct lip::Location [−][src]
Expand description
Records the location of a character within the source string.
Uses row
and col
. The first character of the source is
at row 1 and column 1. Column width aligns mostly with
displayed width of unicode characters and strings
according to the UAX#11 rules, with exceptions
made for compound emojis like 👩🔬. For example, most CJK characters
like 我 and 혇 occupies two column widths. And most emojis occupies
two column widths as well.
Fields
row: usize
col: usize
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Location
impl UnwindSafe for Location
Blanket Implementations
Mutably borrows from an owned value. Read more