pub struct Operator {
pub with_left: Op,
pub without_left: Op,
}Expand description
Describes one of Welly’s built-in operators. See also Op.
In general, operators have two meanings. For example - can mean
negation or subtraction. The cases are distinguished according to whether
the operator is preceded by an expression.
If the operator has only one meaning, we put it in both slots.
Fields§
§with_left: OpThe meaning of the operator if has a left operand.
without_left: OpThe meaning of the operator if has no left operand.
Implementations§
Trait Implementations§
impl Copy for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
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