Type Definition arithmetic_parser::Spanned[][src]

type Spanned<'a, T = ()> = LocatedSpan<&'a str, T>;
Expand description

Value with an associated code span.

Implementations

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

pub fn from_str<R>(code: &'a str, range: R) -> Self where
    InputSpan<'a>: Slice<R>, 
[src]

Creates a span from a range in the provided code. This is mostly useful for testing.