Struct moore_common::source::Span [−][src]
Expand description
A span of locations within a source file, expressed as a half-open interval
of bytes [begin,end)
.
Fields
source: Source
begin: usize
end: usize
Implementations
Create a new span from two byte offsets.
Create a new span that covers two spans, i.e. represents the smallest
possible span that fully contains both input spans a
and b
.
Modify this range to also cover the entirety of the other
range. The
other
range must lie in the same source as self
.
Return the location just before the first character in this span.
Copy the portion of the source file in this span into an owned string.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Span
impl UnwindSafe for Span
Blanket Implementations
Mutably borrows from an owned value. Read more