pub enum Relational {
Less(Additive, Additive),
LessOrEqual(Additive, Additive),
Greater(Additive, Additive),
GreaterOrEqual(Additive, Additive),
Primary(Box<Primary>),
}Expand description
Relational AST node for <, >, <=, >= over additive expressions.
Variants§
Less(Additive, Additive)
Less than comparison: left < right
LessOrEqual(Additive, Additive)
Less than or equal comparison: left <= right
Greater(Additive, Additive)
Greater than comparison: left > right
GreaterOrEqual(Additive, Additive)
Greater than or equal comparison: left >= right
Primary(Box<Primary>)
Primary flattened AST optimization
Implementations§
Trait Implementations§
Source§impl Clone for Relational
impl Clone for Relational
Source§fn clone(&self) -> Relational
fn clone(&self) -> Relational
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Relational
impl Debug for Relational
Source§impl Display for Relational
impl Display for Relational
Source§impl ExpressionLike for Relational
impl ExpressionLike for Relational
Source§impl PartialEq for Relational
impl PartialEq for Relational
Source§impl WriterLike for Relational
impl WriterLike for Relational
Source§fn to_stringized(&self) -> String
fn to_stringized(&self) -> String
Return a string representation (raw unsafe output).
Source§fn to_sanitized(&self) -> String
fn to_sanitized(&self) -> String
Return a sanitized string representation (escaped for safe output).
Source§fn to_expressionized(&self) -> String
fn to_expressionized(&self) -> String
Return a sanitized string representation (escaped for safe output).
impl StructuralPartialEq for Relational
Auto Trait Implementations§
impl Freeze for Relational
impl RefUnwindSafe for Relational
impl Send for Relational
impl Sync for Relational
impl Unpin for Relational
impl UnwindSafe for Relational
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.