pub struct BinaryOp {
    pub lhs_expr: Expression,
    pub operator: BinaryOperator,
    pub rhs_expr: Expression,
}Expand description
An operation that applies an operator to two expressions.
Fields§
§lhs_expr: ExpressionThe expression on the left-hand-side of the operation.
operator: BinaryOperatorThe binary operator to use on the expressions.
rhs_expr: ExpressionThe expression on the right-hand-side of the operation.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for BinaryOp
 
impl<'de> Deserialize<'de> for BinaryOp
source§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
source§impl Evaluate for BinaryOp
 
impl Evaluate for BinaryOp
source§fn evaluate(&self, ctx: &Context<'_>) -> EvalResult<Self::Output>
 
fn evaluate(&self, ctx: &Context<'_>) -> EvalResult<Self::Output>
Recursively evaluates all HCL templates and expressions in the implementing type using the
variables and functions declared in the 
Context. Read moresource§fn evaluate_in_place(&mut self, ctx: &Context<'_>) -> EvalResult<(), Errors>
 
fn evaluate_in_place(&mut self, ctx: &Context<'_>) -> EvalResult<(), Errors>
Recursively tries to evaluate all nested expressions in place. Read more
source§impl Format for BinaryOp
 
impl Format for BinaryOp
source§fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
    W: Write,
 
fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
    W: Write,
Formats a HCL structure using a formatter and writes the result to the provided writer. Read more
source§impl From<BinaryOp> for Expression
 
impl From<BinaryOp> for Expression
source§impl<'de> IntoDeserializer<'de, Error> for BinaryOp
 
impl<'de> IntoDeserializer<'de, Error> for BinaryOp
source§type Deserializer = MapAccessDeserializer<BinaryOpAccess>
 
type Deserializer = MapAccessDeserializer<BinaryOpAccess>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
 
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
impl Eq for BinaryOp
impl StructuralPartialEq for BinaryOp
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§
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.