[−][src]Function ra_ap_test_utils::extract_range_or_offset
pub fn extract_range_or_offset(text: &str) -> (RangeOrOffset, String)
Extracts TextRange
or TextSize
depending on the amount of <|>
markers
found in text
.
Panics
Panics if no <|>
marker is present in the text
.