pub struct SymbolRef {
pub name: String,
pub file: String,
pub line: u32,
pub end_line: u32,
}Expand description
A lightweight reference to a symbol: name, file path, and 1-based line span.
Fields§
§name: String§file: String§line: u321-based first line of the definition.
end_line: u321-based last line of the definition span. Equals line for one-liners
and for rows indexed before this field existed (COALESCE fallback).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SymbolRef
impl<'de> Deserialize<'de> for SymbolRef
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 SymbolRef
impl StructuralPartialEq for SymbolRef
Auto Trait Implementations§
impl Forget for SymbolRef
impl Freeze for SymbolRef
impl Move for SymbolRef
impl RefUnwindSafe for SymbolRef
impl Send for SymbolRef
impl Sync for SymbolRef
impl Unpin for SymbolRef
impl UnsafeUnpin for SymbolRef
impl UnwindSafe for SymbolRef
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