Enum hcl_primitives::expr::BinaryOperator
source · pub enum BinaryOperator {
Show 13 variants
Eq,
NotEq,
LessEq,
GreaterEq,
Less,
Greater,
Plus,
Minus,
Mul,
Div,
Mod,
And,
Or,
}Expand description
An operator that can be applied to two expressions.
For more details, check the section about operations in the HCL syntax specification.
Variants§
Eq
Equal operator (==).
NotEq
Not-equal operator (!=).
LessEq
Less-equal operator (<=).
GreaterEq
Greater-equal operator (>=).
Less
Less operator (<).
Greater
Greater operator (>).
Plus
Plus operator (+).
Minus
Minus operator (-).
Mul
Multiply operator (*).
Div
Division operator (/).
Mod
Modulo operator (%).
And
And operator (&&).
Or
Or operator (||).
Implementations§
Trait Implementations§
source§impl Clone for BinaryOperator
impl Clone for BinaryOperator
source§fn clone(&self) -> BinaryOperator
fn clone(&self) -> BinaryOperator
Returns a copy 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 BinaryOperator
impl Debug for BinaryOperator
source§impl<'de> Deserialize<'de> for BinaryOperator
impl<'de> Deserialize<'de> for BinaryOperator
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 Display for BinaryOperator
impl Display for BinaryOperator
source§impl FromStr for BinaryOperator
impl FromStr for BinaryOperator
source§impl<'de> IntoDeserializer<'de, Error> for BinaryOperator
impl<'de> IntoDeserializer<'de, Error> for BinaryOperator
§type Deserializer = StrDeserializer<'static, Error>
type Deserializer = StrDeserializer<'static, Error>
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.
source§impl PartialEq<BinaryOperator> for BinaryOperator
impl PartialEq<BinaryOperator> for BinaryOperator
source§fn eq(&self, other: &BinaryOperator) -> bool
fn eq(&self, other: &BinaryOperator) -> bool
This method tests for
self and other values to be equal, and is used
by ==.