Trait llvm_bitcode::visitor::BitStreamVisitor[][src]

pub trait BitStreamVisitor {
    fn should_enter_block(&mut self, id: u64) -> bool;
fn did_exit_block(&mut self);
fn visit(&mut self, record: Record); fn validate(&self, _signature: Signature) -> bool { ... } }

A visitor which receives callbacks while reading a bitstream.

Required methods

fn should_enter_block(&mut self, id: u64) -> bool[src]

Called when a new block is encountered. Return true to enter the block and read its contents, or false to skip it.

fn did_exit_block(&mut self)[src]

Called when a block is exited.

fn visit(&mut self, record: Record)[src]

Called whenever a record is encountered.

Loading content...

Provided methods

fn validate(&self, _signature: Signature) -> bool[src]

Validate a bitstream's signature or "magic number".

Loading content...

Implementors

impl BitStreamVisitor for CollectingVisitor[src]

Loading content...