pub struct ValueNumberBinaryOp {
pub operator: Symbol,
pub left_domain: Symbol,
pub right_domain: Symbol,
pub cost: u16,
pub apply: fn(&mut Cx, Value, Value) -> Result<Value>,
}Expand description
A value-level binary operator keyed on both operand domains.
Fields§
§operator: SymbolOperator symbol this rule implements.
left_domain: SymbolRequired domain of the left operand.
right_domain: SymbolRequired domain of the right operand.
cost: u16Relative cost, used to rank competing implementations.
apply: fn(&mut Cx, Value, Value) -> Result<Value>Applies the operator to two domain values.
Trait Implementations§
Source§impl Clone for ValueNumberBinaryOp
impl Clone for ValueNumberBinaryOp
Source§fn clone(&self) -> ValueNumberBinaryOp
fn clone(&self) -> ValueNumberBinaryOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ValueNumberBinaryOp
impl RefUnwindSafe for ValueNumberBinaryOp
impl Send for ValueNumberBinaryOp
impl Sync for ValueNumberBinaryOp
impl Unpin for ValueNumberBinaryOp
impl UnsafeUnpin for ValueNumberBinaryOp
impl UnwindSafe for ValueNumberBinaryOp
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