Enum hcl::expr::UnaryOperator
source · pub enum UnaryOperator {
Neg,
Not,
}
Expand description
An operator that can be applied to an expression.
Variants
Neg
Negate operator (-
).
Not
Not operator (!
).
Implementations
sourceimpl UnaryOperator
impl UnaryOperator
Trait Implementations
sourceimpl Clone for UnaryOperator
impl Clone for UnaryOperator
sourcefn clone(&self) -> UnaryOperator
fn clone(&self) -> UnaryOperator
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 UnaryOperator
impl Debug for UnaryOperator
sourceimpl<'de> Deserialize<'de> for UnaryOperator
impl<'de> Deserialize<'de> for UnaryOperator
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 UnaryOperator
impl Display for UnaryOperator
sourceimpl FromStr for UnaryOperator
impl FromStr for UnaryOperator
sourceimpl<'de> IntoDeserializer<'de, Error> for UnaryOperator
impl<'de> IntoDeserializer<'de, Error> for UnaryOperator
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<UnaryOperator> for UnaryOperator
impl PartialEq<UnaryOperator> for UnaryOperator
sourcefn eq(&self, other: &UnaryOperator) -> bool
fn eq(&self, other: &UnaryOperator) -> bool
sourceimpl Serialize for UnaryOperator
impl Serialize for UnaryOperator
impl Copy for UnaryOperator
impl Eq for UnaryOperator
impl StructuralEq for UnaryOperator
impl StructuralPartialEq for UnaryOperator
Auto Trait Implementations
impl RefUnwindSafe for UnaryOperator
impl Send for UnaryOperator
impl Sync for UnaryOperator
impl Unpin for UnaryOperator
impl UnwindSafe for UnaryOperator
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.