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 Freeze for CollectingVisitor
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