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

Method is_empty

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

Returns true if and only if this span is empty. That is, it points to a single position in the concrete syntax of a regular expression.

(&self)

Source from the content-addressed store, hash-verified

422 /// Returns true if and only if this span is empty. That is, it points to
423 /// a single position in the concrete syntax of a regular expression.
424 pub fn is_empty(&self) -> bool {
425 self.start.offset == self.end.offset
426 }
427}
428
429impl Position {

Callers 15

nextMethod · 0.45
fmtMethod · 0.45
notate_lineMethod · 0.45
pop_classMethod · 0.45
parse_groupMethod · 0.45
parse_capture_nameMethod · 0.45
parse_hex_braceMethod · 0.45
parse_decimalMethod · 0.45
parse_set_classMethod · 0.45
parse_set_class_openMethod · 0.45
pushMethod · 0.45
dropMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected