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
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for BinaryOperator
Available on crate feature
serde
only.Source§fn deserialize<D>(
deserializer: D,
) -> Result<BinaryOperator, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<BinaryOperator, <D as Deserializer<'de>>::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
Available on crate feature serde
only.
impl<'de> IntoDeserializer<'de, Error> for BinaryOperator
Available on crate feature
serde
only.Source§type Deserializer = StrDeserializer<'static, Error>
type Deserializer = StrDeserializer<'static, Error>
The type of the deserializer being converted into.
Source§fn into_deserializer(
self,
) -> <BinaryOperator as IntoDeserializer<'de, Error>>::Deserializer
fn into_deserializer( self, ) -> <BinaryOperator as IntoDeserializer<'de, Error>>::Deserializer
Convert this value into a deserializer.
Source§impl PartialEq for BinaryOperator
impl PartialEq for BinaryOperator
Source§impl Serialize for BinaryOperator
Available on crate feature serde
only.
impl Serialize for BinaryOperator
Available on crate feature
serde
only.Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for BinaryOperator
impl Eq for BinaryOperator
impl StructuralPartialEq for BinaryOperator
Auto Trait Implementations§
impl Freeze for BinaryOperator
impl RefUnwindSafe for BinaryOperator
impl Send for BinaryOperator
impl Sync for BinaryOperator
impl Unpin for BinaryOperator
impl UnwindSafe for BinaryOperator
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§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.