pub struct PureDefRefs;Expand description
Definition and Reference analysis for PureFile.
Implementations§
Source§impl PureDefRefs
impl PureDefRefs
Sourcepub fn analyze(file: &PureFile) -> PureSymbolTable
pub fn analyze(file: &PureFile) -> PureSymbolTable
Analyze all symbols and their references in a PureFile.
Sourcepub fn find_definition(file: &PureFile, name: &str) -> Option<PureSymbol>
pub fn find_definition(file: &PureFile, name: &str) -> Option<PureSymbol>
Find definition of a symbol by name.
Sourcepub fn count_references(file: &PureFile, name: &str) -> usize
pub fn count_references(file: &PureFile, name: &str) -> usize
Count references to a symbol.
Sourcepub fn all_definitions(file: &PureFile) -> Vec<String>
pub fn all_definitions(file: &PureFile) -> Vec<String>
Get all defined symbol names.
Auto Trait Implementations§
impl Freeze for PureDefRefs
impl RefUnwindSafe for PureDefRefs
impl Send for PureDefRefs
impl Sync for PureDefRefs
impl Unpin for PureDefRefs
impl UnsafeUnpin for PureDefRefs
impl UnwindSafe for PureDefRefs
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