BinaryOp in oxide_sql_core::ast - Rust

pub enum BinaryOp {
Show 19 variants Add, Sub, Mul, Div, Mod, Eq, NotEq, Lt, LtEq, Gt, GtEq, And, Or, Concat, Like, BitAnd, BitOr, LeftShift, RightShift,
}
Expand description

Binary operators.

Variants§

§

Add

§

Sub

§

Mul

§

Div

§

Mod

§

Eq

§

NotEq

§

Lt

§

LtEq

§

Gt

§

GtEq

§

And

§

Or

§

Concat

§

Like

§

BitAnd

§

BitOr

§

LeftShift

§

RightShift

Implementations§

Source§

impl BinaryOp

Source

pub const fn as_str(&self) -> &'static str

Returns the SQL representation of the operator.

Source

pub const fn precedence(&self) -> u8

Returns the precedence of the operator (higher = binds tighter).

Trait Implementations§

Auto Trait Implementations§

§

impl Freeze for BinaryOp

§

impl RefUnwindSafe for BinaryOp

§

impl Send for BinaryOp

§

impl Sync for BinaryOp

§

impl Unpin for BinaryOp

§

impl UnwindSafe for BinaryOp

Blanket Implementations§