pub struct PureSymbolTable {
pub symbols: HashMap<String, PureSymbol>,
}Expand description
Symbol table for PureFile.
Fields§
§symbols: HashMap<String, PureSymbol>All symbols indexed by name.
Implementations§
Source§impl PureSymbolTable
impl PureSymbolTable
Sourcepub fn by_kind(&self, kind: PureSymbolKind) -> Vec<&PureSymbol>
pub fn by_kind(&self, kind: PureSymbolKind) -> Vec<&PureSymbol>
Get all symbols of a specific kind.
Sourcepub fn functions(&self) -> Vec<&PureSymbol>
pub fn functions(&self) -> Vec<&PureSymbol>
Get all function definitions.
Sourcepub fn structs(&self) -> Vec<&PureSymbol>
pub fn structs(&self) -> Vec<&PureSymbol>
Get all struct definitions.
Sourcepub fn get(&self, name: &str) -> Option<&PureSymbol>
pub fn get(&self, name: &str) -> Option<&PureSymbol>
Get symbol by name.
Trait Implementations§
Source§impl Clone for PureSymbolTable
impl Clone for PureSymbolTable
Source§fn clone(&self) -> PureSymbolTable
fn clone(&self) -> PureSymbolTable
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 PureSymbolTable
impl Debug for PureSymbolTable
Source§impl Default for PureSymbolTable
impl Default for PureSymbolTable
Source§fn default() -> PureSymbolTable
fn default() -> PureSymbolTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PureSymbolTable
impl RefUnwindSafe for PureSymbolTable
impl Send for PureSymbolTable
impl Sync for PureSymbolTable
impl Unpin for PureSymbolTable
impl UnsafeUnpin for PureSymbolTable
impl UnwindSafe for PureSymbolTable
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