pub struct Binary {
pub left: Box<Expression>,
pub operator: String,
pub right: Box<Expression>,
pub escape: Option<Box<Expression>>,
}Expand description
A binary operation: left operator right.
PHP: Utopia\Query\AST\Expression\Binary (left, operator, right).
Fields§
§left: Box<Expression>The left operand.
operator: StringThe operator (=, AND, NOT LIKE, +).
right: Box<Expression>The right operand.
escape: Option<Box<Expression>>What ESCAPE names after a LIKE pattern.
Implementations§
Source§impl Binary
impl Binary
Sourcepub fn new(
left: impl Into<Expression>,
operator: impl Into<String>,
right: impl Into<Expression>,
) -> Self
pub fn new( left: impl Into<Expression>, operator: impl Into<String>, right: impl Into<Expression>, ) -> Self
left operator right.
PHP: new Binary($left, $operator, $right).
Sourcepub fn with_escape(self, escape: impl Into<Expression>) -> Self
pub fn with_escape(self, escape: impl Into<Expression>) -> Self
The comparison with ESCAPE escape after its pattern.
PHP: the $escape argument.
Trait Implementations§
Source§impl From<Binary> for Expression
impl From<Binary> for Expression
impl StructuralPartialEq for Binary
Auto Trait Implementations§
impl Forget for Binary
impl Freeze for Binarywhere
*const Expression is !null: Freeze,
PhantomData<Expression>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for Binary
impl RefUnwindSafe for Binarywhere
Atomic<*mut ()>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
OnceLock<Index>: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
impl Send for Binary
impl Sync for Binary
impl Unpin for Binary
impl UnsafeUnpin for Binarywhere
*const Expression is !null: UnsafeUnpin,
PhantomData<Expression>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Binary
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