pub struct Spanning<T> {
pub item: T,
pub start: SourcePosition,
pub end: SourcePosition,
}
Expand description
Data structure used to wrap items with start and end markers in the input source
A “span” is a range of characters in the input source, starting at the
character pointed by the start
field and ending just before the end
marker.
Fields
item: T
The wrapped item
start: SourcePosition
Start position of the item
end: SourcePosition
End position of the item
This points to the first source position after the wrapped item.
Implementations
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for Spanning<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Spanning<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.