pub struct SymbolUse {
pub on: String,
pub file: u32,
pub line: u32,
pub start: u32,
pub end: u32,
}Expand description
One token that reads a SymbolDef.
Recorded only on a line the change WROTE. Those are the lines the reviewer is reading, and they bound the index: with any declaration resolvable, every mention in every parsed file would grow this with the size of the files.
Fields§
§on: StringThe SymbolDef id this use resolves to.
file: u32Index into the document’s files[], as on SymbolDef.
line: u32§start: u32Raw-line byte offsets, as on SymbolDef.
end: u32Trait Implementations§
Source§impl<'de> Deserialize<'de> for SymbolUse
impl<'de> Deserialize<'de> for SymbolUse
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 StructuralPartialEq for SymbolUse
Auto Trait Implementations§
impl Freeze for SymbolUse
impl RefUnwindSafe for SymbolUse
impl Send for SymbolUse
impl Sync for SymbolUse
impl Unpin for SymbolUse
impl UnsafeUnpin for SymbolUse
impl UnwindSafe for SymbolUse
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