pub trait SymbolUserOpInterface: Op {
// Required methods
fn verify_symbol_uses(
&self,
ctx: &Context,
symbol_tables: &mut SymbolTableCollection,
) -> Result<(), Error>;
fn used_symbols(&self, ctx: &Context) -> Vec<Identifier>;
}Required Methods§
Sourcefn verify_symbol_uses(
&self,
ctx: &Context,
symbol_tables: &mut SymbolTableCollection,
) -> Result<(), Error>
fn verify_symbol_uses( &self, ctx: &Context, symbol_tables: &mut SymbolTableCollection, ) -> Result<(), Error>
Verify the symbol uses held by this operation. This is called when verifying a symbol table operation that (possibly transitively) contains this operation.
Sourcefn used_symbols(&self, ctx: &Context) -> Vec<Identifier>
fn used_symbols(&self, ctx: &Context) -> Vec<Identifier>
Returns the list of symbols used by this operation.
Trait Implementations§
impl OpInterfaceMarker for dyn SymbolUserOpInterface
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".