pub struct FoldingRange {
pub end_character: Option<Uinteger>,
pub end_line: Uinteger,
pub kind: Option<String>,
pub start_character: Option<Uinteger>,
pub start_line: Uinteger,
}Expand description
Represents a folding range. To be valid, start and end line must be bigger than zero and smaller than the number of lines in the document. Clients are free to ignore invalid ranges.
Fields§
§end_character: Option<Uinteger>The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line.
end_line: UintegerThe zero-based end line of the range to fold. The folded area ends with the line’s last character. To be valid, the end must be zero or larger and smaller than the number of lines in the document.
kind: Option<String>Describes the kind of the folding range such as comment or region. The kind is used to
categorize folding ranges and used by commands like ‘Fold all comments’. See
FoldingRangeKind for an enumeration of standardized kinds.
start_character: Option<Uinteger>The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line.
start_line: UintegerThe zero-based start line of the range to fold. The folded area starts after the line’s last character. To be valid, the end must be zero or larger and smaller than the number of lines in the document.
Trait Implementations§
Source§impl Clone for FoldingRange
impl Clone for FoldingRange
Source§fn clone(&self) -> FoldingRange
fn clone(&self) -> FoldingRange
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more