Module nom_grapheme_clusters::span
source · Expand description
This module provides ways of tracking ranges (spans) in the source code.
Structs
- Iterator over segments of a
Spanwhich also yield postion for convenience. Created bySegments::indexed,Span::indexed_segmentsorSpanContent::indexed_segments. Double-ended and sized. - Iterator over located segments of a
Span. Created bySpan::segmentsorSpanContent::segments, as well viaIntoIteratortrait. Double-ended and sized. - A span (a range) in the source code.
- A type that, when displayed, shows the span contents, rather than location.
- A type for metadata associated with a span (“spanned data”).
Traits
- Types that have a span associated.