Skip to main content

SymbolLookup

Trait SymbolLookup 

Source
pub trait SymbolLookup {
    // Required methods
    fn get_file_id(&self, path: &str) -> Result<Option<i64>, DbError>;
    fn get_symbol_by_id(
        &self,
        symbol_id: i64,
    ) -> Result<Option<Symbol>, DbError>;
    fn search_symbols_by_name(
        &self,
        name: &str,
        limit: i64,
    ) -> Result<Vec<SymbolResult>, DbError>;
    fn get_symbols_for_file(&self, file_id: i64) -> Result<Vec<Symbol>, DbError>;
    fn get_children(&self, symbol_id: i64) -> Result<Vec<Symbol>, DbError>;
    fn impact_analysis(
        &self,
        symbol_id: i64,
        max_depth: i64,
    ) -> Result<Vec<ImpactEntry>, DbError>;
    fn stats(&self) -> Result<(i64, i64, i64), DbError>;
}
Expand description

Shared read-only symbol/file lookup operations.

Required Methods§

Source

fn get_file_id(&self, path: &str) -> Result<Option<i64>, DbError>

Source

fn get_symbol_by_id(&self, symbol_id: i64) -> Result<Option<Symbol>, DbError>

Source

fn search_symbols_by_name( &self, name: &str, limit: i64, ) -> Result<Vec<SymbolResult>, DbError>

Source

fn get_symbols_for_file(&self, file_id: i64) -> Result<Vec<Symbol>, DbError>

Source

fn get_children(&self, symbol_id: i64) -> Result<Vec<Symbol>, DbError>

Source

fn impact_analysis( &self, symbol_id: i64, max_depth: i64, ) -> Result<Vec<ImpactEntry>, DbError>

Source

fn stats(&self) -> Result<(i64, i64, i64), DbError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§