pub struct SymbolIndex {
pub definitions: Vec<SymbolDef>,
pub uses: Vec<SymbolUse>,
}Expand description
Where each resolvable name is declared, and every token that reads one.
Two flat lists rather than a map: ids are positional, a consumer indexes them directly, and JSON has no set type worth the ceremony.
Fields§
§definitions: Vec<SymbolDef>§uses: Vec<SymbolUse>Trait Implementations§
Source§impl Clone for SymbolIndex
impl Clone for SymbolIndex
Source§impl Debug for SymbolIndex
impl Debug for SymbolIndex
Source§impl Default for SymbolIndex
impl Default for SymbolIndex
Source§impl<'de> Deserialize<'de> for SymbolIndex
impl<'de> Deserialize<'de> for SymbolIndex
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 PartialEq for SymbolIndex
impl PartialEq for SymbolIndex
Source§impl Serialize for SymbolIndex
impl Serialize for SymbolIndex
impl StructuralPartialEq for SymbolIndex
Auto Trait Implementations§
impl Freeze for SymbolIndex
impl RefUnwindSafe for SymbolIndex
impl Send for SymbolIndex
impl Sync for SymbolIndex
impl Unpin for SymbolIndex
impl UnsafeUnpin for SymbolIndex
impl UnwindSafe for SymbolIndex
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