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
start_line: u64
The zero-based line number from where the folded range starts.
start_character: Option<u64>
The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line.
end_line: u64
The zero-based line number where the folded range ends.
end_character: Option<u64>
The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line.
kind: Option<FoldingRangeKind>
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]
impl Debug for FoldingRange
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for FoldingRange
[src]
impl Eq for FoldingRange
impl PartialEq for FoldingRange
[src]
impl PartialEq for FoldingRange
fn eq(&self, other: &FoldingRange) -> bool
[src]
fn eq(&self, other: &FoldingRange) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FoldingRange) -> bool
[src]
fn ne(&self, other: &FoldingRange) -> bool
This method tests for !=
.
impl Default for FoldingRange
[src]
impl Default for FoldingRange
fn default() -> FoldingRange
[src]
fn default() -> FoldingRange
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for FoldingRange
impl Send for FoldingRange
impl Sync for FoldingRange
impl Sync for FoldingRange