pub enum Definition {
Location(Location),
LocationList(Vec<Location>),
}Expand description
The definition of a symbol represented as one or many locations. For most programming languages there is only one location at which a symbol is defined.
Servers should prefer returning DefinitionLink over Definition if supported
by the client.
Variants§
Trait Implementations§
Source§impl Clone for Definition
impl Clone for Definition
Source§fn clone(&self) -> Definition
fn clone(&self) -> Definition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Definition
impl Debug for Definition
Source§impl<'de> Deserialize<'de> for Definition
impl<'de> Deserialize<'de> for Definition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Definition> for DefinitionResponse
impl From<Definition> for DefinitionResponse
Source§fn from(v: Definition) -> Self
fn from(v: Definition) -> Self
Converts to this type from the input type.
Source§impl From<Definition> for ImplementationResponse
impl From<Definition> for ImplementationResponse
Source§fn from(v: Definition) -> Self
fn from(v: Definition) -> Self
Converts to this type from the input type.
Source§impl From<Definition> for TypeDefinitionResponse
impl From<Definition> for TypeDefinitionResponse
Source§fn from(v: Definition) -> Self
fn from(v: Definition) -> Self
Converts to this type from the input type.
Source§impl From<Location> for Definition
impl From<Location> for Definition
Source§impl Hash for Definition
impl Hash for Definition
Source§impl PartialEq for Definition
impl PartialEq for Definition
Source§fn eq(&self, other: &Definition) -> bool
fn eq(&self, other: &Definition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Definition
impl Serialize for Definition
impl Eq for Definition
impl StructuralPartialEq for Definition
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnsafeUnpin for Definition
impl UnwindSafe for Definition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more