pub struct BlockCall {
pub block: Block,
pub args: Vec<BlockArg>,
}Expand description
A control-flow edge: a target block and the arguments for its parameters.
§Examples
use ir_lang::{Block, BlockCall, Value};
let c = BlockCall::new(Block::from_u32(2), &[Value::from_u32(0)]);
assert_eq!(c.to_string(), "b2(v0)");
assert_eq!(BlockCall::new(Block::from_u32(1), &[]).to_string(), "b1");Fields§
§block: BlockThe target block.
args: Vec<BlockArg>One argument per target parameter.
Implementations§
Trait Implementations§
impl Eq for BlockCall
impl StructuralPartialEq for BlockCall
Auto Trait Implementations§
impl Freeze for BlockCall
impl RefUnwindSafe for BlockCall
impl Send for BlockCall
impl Sync for BlockCall
impl Unpin for BlockCall
impl UnsafeUnpin for BlockCall
impl UnwindSafe for BlockCall
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