pub enum RelationAnchor {
File {
file: RepositoryFilePath,
},
Symbol {
file: RepositoryFilePath,
name: String,
symbol_kind: Option<SymbolKind>,
parent: Option<String>,
signature: Option<String>,
},
}Expand description
Exact local starting point for relation navigation.
Variants§
File
Select one exact indexed file entity.
Fields
§
file: RepositoryFilePathExact normalized repository file.
Symbol
Select one exact declaration, with optional fields used to disambiguate it.
Trait Implementations§
Source§impl Clone for RelationAnchor
impl Clone for RelationAnchor
Source§fn clone(&self) -> RelationAnchor
fn clone(&self) -> RelationAnchor
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 RelationAnchor
impl Debug for RelationAnchor
Source§impl<'de> Deserialize<'de> for RelationAnchor
impl<'de> Deserialize<'de> for RelationAnchor
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
impl Eq for RelationAnchor
Source§impl PartialEq for RelationAnchor
impl PartialEq for RelationAnchor
Source§fn eq(&self, other: &RelationAnchor) -> bool
fn eq(&self, other: &RelationAnchor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RelationAnchor
impl Serialize for RelationAnchor
impl StructuralPartialEq for RelationAnchor
Auto Trait Implementations§
impl Freeze for RelationAnchor
impl RefUnwindSafe for RelationAnchor
impl Send for RelationAnchor
impl Sync for RelationAnchor
impl Unpin for RelationAnchor
impl UnsafeUnpin for RelationAnchor
impl UnwindSafe for RelationAnchor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.