Enum hcl::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.
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
sourceimpl BinaryOperator
impl BinaryOperator
Trait Implementations
sourceimpl Clone for BinaryOperator
impl Clone for BinaryOperator
sourcefn clone(&self) -> BinaryOperator
fn clone(&self) -> BinaryOperator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BinaryOperator
impl Debug for BinaryOperator
sourceimpl<'de> Deserialize<'de> for BinaryOperator
impl<'de> Deserialize<'de> for BinaryOperator
sourcefn 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
sourceimpl Display for BinaryOperator
impl Display for BinaryOperator
sourceimpl FromStr for BinaryOperator
impl FromStr for BinaryOperator
sourceimpl<'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.
sourcefn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
sourceimpl PartialEq<BinaryOperator> for BinaryOperator
impl PartialEq<BinaryOperator> for BinaryOperator
sourcefn eq(&self, other: &BinaryOperator) -> bool
fn eq(&self, other: &BinaryOperator) -> bool
sourceimpl Serialize for BinaryOperator
impl Serialize for BinaryOperator
impl Copy for BinaryOperator
impl Eq for BinaryOperator
impl StructuralEq for BinaryOperator
impl StructuralPartialEq for BinaryOperator
Auto Trait Implementations
impl RefUnwindSafe for BinaryOperator
impl Send for BinaryOperator
impl Sync for BinaryOperator
impl Unpin for BinaryOperator
impl UnwindSafe for BinaryOperator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.