Struct regex_syntax::ast::Span [−][src]
Expand description
Span represents the position information of a single AST item.
All span positions are absolute byte offsets that can be used on the original regular expression that was parsed.
Fields
start: PositionThe start byte offset.
end: PositionThe end byte offset.
Implementations
Create a new span using the given position as the start and end.
Create a new span by replacing the starting the position with the one given.
Create a new span by replacing the ending the position with the one given.
Returns true if and only if this span occurs on a single line.
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