Type Definition esparse::ast::Span [] [src]

type Span<'f, L> = SpanT<&'f str, L>;

A SpanT with a borrowed string file name.

Used widely by the lexer and parser because it appears in every syntactic construct and is cheap to copy.

If the SpanT must own its filename, use SpanRc instead.

Methods

impl<'f, L: Clone> Span<'f, L>
[src]

[src]

Converts a Span into a SpanRc by cloning the borrowed file name.

[src]

Converts a Span into a SpanT which owns its data by cloning the borrowed file name.