Struct languageserver_types::FoldingRange[][src]

pub struct FoldingRange {
    pub start_line: u64,
    pub start_character: Option<u64>,
    pub end_line: u64,
    pub end_character: Option<u64>,
    pub kind: Option<FoldingRangeKind>,
}

Represents a folding range.

Fields

The zero-based line number from where the folded range starts.

The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line.

The zero-based line number where the folded range ends.

The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line.

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.

Trait Implementations

impl Debug for FoldingRange
[src]

Formats the value using the given formatter. Read more

impl Eq for FoldingRange
[src]

impl PartialEq for FoldingRange
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for FoldingRange
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations