[][src]Struct tamasfe_lsp_types::FoldingRange

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

Represents a folding range.

Fields

start_line: u32

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

start_character: Option<u32>

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

end_line: u32

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

end_character: Option<u32>

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 Clone for FoldingRange[src]

impl Debug for FoldingRange[src]

impl Default for FoldingRange[src]

impl<'de> Deserialize<'de> for FoldingRange[src]

impl Eq for FoldingRange[src]

impl PartialEq<FoldingRange> for FoldingRange[src]

impl Serialize for FoldingRange[src]

impl StructuralEq for FoldingRange[src]

impl StructuralPartialEq for FoldingRange[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.