Trait llvm_bitcode::visitor::BitStreamVisitor
source · pub trait BitStreamVisitor {
// Required methods
fn should_enter_block(&mut self, id: u64) -> bool;
fn did_exit_block(&mut self);
fn visit(&mut self, record: Record);
// Provided method
fn validate(&self, _signature: Signature) -> bool { ... }
}
Expand description
A visitor which receives callbacks while reading a bitstream.
Required Methods§
sourcefn should_enter_block(&mut self, id: u64) -> bool
fn should_enter_block(&mut self, id: u64) -> bool
Called when a new block is encountered. Return true
to enter the block
and read its contents, or false
to skip it.
sourcefn did_exit_block(&mut self)
fn did_exit_block(&mut self)
Called when a block is exited.