Enum full_moon::ast::BinOp [−][src]
#[non_exhaustive] pub enum BinOp {}Show 15 variants
And(TokenReference), Caret(TokenReference), GreaterThan(TokenReference), GreaterThanEqual(TokenReference), LessThan(TokenReference), LessThanEqual(TokenReference), Minus(TokenReference), Or(TokenReference), Percent(TokenReference), Plus(TokenReference), Slash(TokenReference), Star(TokenReference), TildeEqual(TokenReference), TwoDots(TokenReference), TwoEqual(TokenReference),
Expand description
Operators that require two operands, such as X + Y or X - Y
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Tuple Fields of And
Tuple Fields of Caret
Tuple Fields of GreaterThan
Tuple Fields of GreaterThanEqual
Tuple Fields of LessThan
Tuple Fields of LessThanEqual
Tuple Fields of Minus
Tuple Fields of Or
Tuple Fields of Percent
Tuple Fields of Plus
Tuple Fields of Slash
Tuple Fields of Star
Tuple Fields of TildeEqual
Tuple Fields of TwoDots
Tuple Fields of TwoEqual
Implementations
The precedence of the operator, from a scale of 1 to 8. The larger the number, the higher the precedence. See more at http://www.lua.org/manual/5.1/manual.html#2.5.6
Whether the operator is right associative. If not, it is left associative. See more at https://www.lua.org/pil/3.5.html
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
The start position of a node. None if can’t be determined
The end position of a node. None if it can’t be determined
Whether another node of the same type is the same as this one semantically, ignoring position
The token references that comprise a node
The full range of a node, if it has both start and end positions
Auto Trait Implementations
impl RefUnwindSafe for BinOp
impl UnwindSafe for BinOp
Blanket Implementations
Mutably borrows from an owned value. Read more