Module leo_span::span

source ·
Expand description

Defines the Span type used to track where code comes from.

Macros§

  • impl_pos 🔒
    Generate one-component tuple structs that implement the Pos trait.

Structs§

  • A byte offset.
  • A character offset.
  • The span type which tracks where formatted errors originate from in a Leo file. This is used in many spots throughout the rest of the Leo crates.

Traits§

  • Offsets (i.e. positions), in some units (e.g. bytes or characters), with conversions between unsigned integers.