pub struct LoopInvariantExpr {
pub var: LcnfVarId,
pub value: LcnfLetValue,
pub ty: LcnfType,
pub loop_depth: u32,
}Expand description
A let-binding inside a loop whose value is loop-invariant.
Fields§
§var: LcnfVarIdThe variable introduced by this binding.
value: LcnfLetValueThe right-hand side value (invariant computation).
ty: LcnfTypeThe type of the variable.
loop_depth: u32Nesting depth of the loop this expression was found in.
Trait Implementations§
Source§impl Clone for LoopInvariantExpr
impl Clone for LoopInvariantExpr
Source§fn clone(&self) -> LoopInvariantExpr
fn clone(&self) -> LoopInvariantExpr
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for LoopInvariantExpr
impl RefUnwindSafe for LoopInvariantExpr
impl Send for LoopInvariantExpr
impl Sync for LoopInvariantExpr
impl Unpin for LoopInvariantExpr
impl UnsafeUnpin for LoopInvariantExpr
impl UnwindSafe for LoopInvariantExpr
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