MCPcopy Create free account
hub / github.com/davidblewett/rure-python / with_end

Method with_end

regex/regex-syntax/src/ast/mod.rs:413–415  ·  view source on GitHub ↗

Create a new span by replacing the ending the position with the one given.

(self, pos: Position)

Source from the content-addressed store, hash-verified

411 /// Create a new span by replacing the ending the position with the one
412 /// given.
413 pub fn with_end(self, pos: Position) -> Span {
414 Span { end: pos, ..self }
415 }
416
417 /// Returns true if and only if this span occurs on a single line.
418 pub fn is_one_line(&self) -> bool {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected