pub enum UnaryOperator {
Neg,
Not,
}
Expand description
An operator that can be applied to an expression.
For more details, check the section about operations in the HCL syntax specification.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for UnaryOperator
impl Clone for UnaryOperator
Source§fn clone(&self) -> UnaryOperator
fn clone(&self) -> UnaryOperator
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 UnaryOperator
impl Debug for UnaryOperator
Source§impl<'de> Deserialize<'de> for UnaryOperator
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for UnaryOperator
Available on crate feature
serde
only.Source§fn deserialize<D>(
deserializer: D,
) -> Result<UnaryOperator, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<UnaryOperator, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for UnaryOperator
impl Display for UnaryOperator
Source§impl FromStr for UnaryOperator
impl FromStr for UnaryOperator
Source§impl<'de> IntoDeserializer<'de, Error> for UnaryOperator
Available on crate feature serde
only.
impl<'de> IntoDeserializer<'de, Error> for UnaryOperator
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,
) -> <UnaryOperator as IntoDeserializer<'de, Error>>::Deserializer
fn into_deserializer( self, ) -> <UnaryOperator as IntoDeserializer<'de, Error>>::Deserializer
Convert this value into a deserializer.
Source§impl PartialEq for UnaryOperator
impl PartialEq for UnaryOperator
Source§impl Serialize for UnaryOperator
Available on crate feature serde
only.
impl Serialize for UnaryOperator
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 UnaryOperator
impl Eq for UnaryOperator
impl StructuralPartialEq for UnaryOperator
Auto Trait Implementations§
impl Freeze for UnaryOperator
impl RefUnwindSafe for UnaryOperator
impl Send for UnaryOperator
impl Sync for UnaryOperator
impl Unpin for UnaryOperator
impl UnwindSafe for UnaryOperator
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.