pub struct MIRBlock {
pub contents: Vec<MIRInstruction>,
}Fields§
§contents: Vec<MIRInstruction>Implementations§
Source§impl MIRBlock
impl MIRBlock
pub fn new() -> Self
pub fn with_contents(contents: Vec<MIRInstruction>) -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn replace_regs<F: Fn(&mut Identifier)>(&mut self, f: &F)
pub fn replace_mut_vals<F: Fn(&mut MutableValue)>(&mut self, f: &F)
Trait Implementations§
Source§impl Block for MIRBlock
impl Block for MIRBlock
type InstrType = MIRInstruction
type InstrKindType = MIRInstrKind
fn contents(&self) -> &Vec<Self::InstrType>
fn contents_mut(&mut self) -> &mut Vec<Self::InstrType>
fn instr_count(&self) -> usize
fn get_index_set(&self) -> GrowSet
impl StructuralPartialEq for MIRBlock
Auto Trait Implementations§
impl Freeze for MIRBlock
impl RefUnwindSafe for MIRBlock
impl Send for MIRBlock
impl Sync for MIRBlock
impl Unpin for MIRBlock
impl UnwindSafe for MIRBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<B> GetUsedRegs for B
impl<B> GetUsedRegs for B
fn append_used_regs<'this>(&'this self, regs: &mut Vec<&'this Arc<str>>)
fn get_used_regs(&self) -> Vec<&Identifier> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more