[][src]Enum slide_ls::services::references::ReferenceKind

pub enum ReferenceKind {
    Definition(Span),
    Usage(Span),
}

The kind of a reference.

Variants

Definition(Span)

The reference is a definition of the item this is a reference of. For example, "a" in "a = 1" is a definition reference of "a".

Usage(Span)

The reference is a usage of the item this is a reference of, in an expression. For example, "a" in "b + a + 1" is a usage reference of "a".

Implementations

impl ReferenceKind[src]

pub fn span(&self) -> &Span[src]

Auto Trait Implementations

impl RefUnwindSafe for ReferenceKind

impl Send for ReferenceKind

impl Sync for ReferenceKind

impl Unpin for ReferenceKind

impl UnwindSafe for ReferenceKind

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> From<T> for T[src]

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

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.