logo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

#[derive(Default)]
pub struct TextRange {
    // The next index after the characters in this range.
    pub end: i32,
    
    // Whether this range is empty (but still potentially placed inside the text).
    pub is_collapsed: bool,
    
    // Whether the start of this range precedes the end.
    pub is_normalized: bool,
    
    // Whether this range represents a valid position in the text.
    pub is_valid: bool,
    
    // The index of the first character in the range.
    pub start: i32,
}

impl TextRange {
    // textAfter(String text) → String
    // The text after this range. 
    // textBefore(String text) → String
    // The text before this range. 
    // textInside(String text) → String
    // The text inside this range. 
    // toString() → String
    // A string representation of this object.
}