[][src]Struct rls_vfs::SpanData

pub struct SpanData {
    pub span: Span<ZeroIndexed>,
    pub len: Option<u64>,
}

Span of the text to be replaced defined in col/row terms.

Fields

span: Span<ZeroIndexed>

Span of the text defined in col/row terms.

len: Option<u64>

Length in chars of the text. If present, used to calculate replacement range instead of span's row_end/col_end fields. Needed for editors that can't properly calculate the latter fields. Span's row_start/col_start are still assumed valid.

Trait Implementations

impl Eq for SpanData[src]

impl PartialOrd<SpanData> for SpanData[src]

impl PartialEq<SpanData> for SpanData[src]

impl Ord for SpanData[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Debug for SpanData[src]

impl Hash for SpanData[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for SpanData

impl Sync for SpanData

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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