Struct runestick::Span [−][src]
Expand description
A span corresponding to a range in the source file being parsed.
Fields
start: ByteIndex
The start of the span in bytes.
end: ByteIndex
The end of the span in bytes.
Implementations
Construct a new span.
Check if current span completely overlaps with another.
Get the point span.
Narrow the span with the given amount.
Trim the start of the span by the given amount.
Trim the end of the span by the given amount.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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