pub struct Eqn {
pub prim: Prim,
pub inputs: Vec<Atom>,
pub params: Params,
pub outputs: Vec<Var>,
pub loc: Option<SrcLoc>,
}Expand description
An equation: applies a primitive to operands and defines variables.
Fields§
§prim: PrimThe primitive.
inputs: Vec<Atom>The operands.
params: ParamsThe parameters.
outputs: Vec<Var>The variables defined by the equation.
loc: Option<SrcLoc>Where the equation was created, if known.
Trait Implementations§
impl StructuralPartialEq for Eqn
Auto Trait Implementations§
impl !RefUnwindSafe for Eqn
impl !UnwindSafe for Eqn
impl Freeze for Eqn
impl Send for Eqn
impl Sync for Eqn
impl Unpin for Eqn
impl UnsafeUnpin for Eqn
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