Struct llvm_bitcode::visitor::CollectingVisitor
source · pub struct CollectingVisitor { /* private fields */ }
Expand description
A basic visitor that collects all the blocks and records in a stream.
Implementations§
source§impl CollectingVisitor
impl CollectingVisitor
pub fn new() -> Self
pub fn finalize_top_level_elements(self) -> Vec<BitcodeElement>
Trait Implementations§
source§impl BitStreamVisitor for CollectingVisitor
impl BitStreamVisitor for CollectingVisitor
source§fn 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.source§fn did_exit_block(&mut self)
fn did_exit_block(&mut self)
Called when a block is exited.
Auto Trait Implementations§
impl RefUnwindSafe for CollectingVisitor
impl Send for CollectingVisitor
impl Sync for CollectingVisitor
impl Unpin for CollectingVisitor
impl UnwindSafe for CollectingVisitor
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