pub struct LinearFunction {
pub a: i64,
pub b: i64,
pub iv: LcnfVarId,
}Expand description
A linear function a * i + b of an induction variable i.
Used during OSR to describe expressions that are computable from the IV by cheap arithmetic.
Fields§
§a: i64Coefficient a (multiplier of IV).
b: i64Constant offset b.
iv: LcnfVarIdThe induction variable.
Implementations§
Trait Implementations§
Source§impl Clone for LinearFunction
impl Clone for LinearFunction
Source§fn clone(&self) -> LinearFunction
fn clone(&self) -> LinearFunction
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 moreSource§impl Debug for LinearFunction
impl Debug for LinearFunction
Source§impl Display for LinearFunction
impl Display for LinearFunction
Source§impl PartialEq for LinearFunction
impl PartialEq for LinearFunction
impl StructuralPartialEq for LinearFunction
Auto Trait Implementations§
impl Freeze for LinearFunction
impl RefUnwindSafe for LinearFunction
impl Send for LinearFunction
impl Sync for LinearFunction
impl Unpin for LinearFunction
impl UnsafeUnpin for LinearFunction
impl UnwindSafe for LinearFunction
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