pub struct BasicBlock<I> {
pub addr: VAddr,
pub insns: Vec<I>,
pub terminator: Terminator,
}Expand description
A maximal straight-line sequence of instructions ending in a
Terminator.
“Maximal” in the usual sense: the only entry to the block is at
addr, and every instruction except the last falls through to its
successor.
Fields§
§addr: VAddr§insns: Vec<I>§terminator: TerminatorImplementations§
Trait Implementations§
Source§impl<I: Clone> Clone for BasicBlock<I>
impl<I: Clone> Clone for BasicBlock<I>
Source§fn clone(&self) -> BasicBlock<I>
fn clone(&self) -> BasicBlock<I>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<I> Freeze for BasicBlock<I>
impl<I> RefUnwindSafe for BasicBlock<I>where
I: RefUnwindSafe,
impl<I> Send for BasicBlock<I>where
I: Send,
impl<I> Sync for BasicBlock<I>where
I: Sync,
impl<I> Unpin for BasicBlock<I>where
I: Unpin,
impl<I> UnsafeUnpin for BasicBlock<I>
impl<I> UnwindSafe for BasicBlock<I>where
I: UnwindSafe,
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