pub enum CondUnaryOp {
BitwiseNot,
ReductionAnd,
ReductionOr,
ReductionXor,
ReductionNand,
ReductionNor,
ReductionXnor,
LogicalNot,
}Expand description
LRM 1800-2023 Table 30-1’s own eight UNARY operators valid in a
state-dependent path’s if (cond) conditional expression (30.4.4.1,
Task 8). A one-to-one subset of sv_lang::UnaryOp’s own variants –
Self::from_sv is the one, exhaustive translation point: every
UnaryOp variant is named explicitly (never a wildcard _ arm), so a
future UnaryOp addition fails to compile here instead of silently
being accepted or silently being rejected.
Variants§
BitwiseNot
~ – bitwise negation (per-bit, width-preserving; NOT a reduction).
ReductionAnd
& – reduction AND.
ReductionOr
| – reduction OR.
ReductionXor
^ – reduction XOR.
ReductionNand
~& – reduction NAND.
ReductionNor
~| – reduction NOR.
ReductionXnor
^~/~^ – reduction XNOR.
LogicalNot
! – logical NOT.
Trait Implementations§
Source§impl Clone for CondUnaryOp
impl Clone for CondUnaryOp
impl Copy for CondUnaryOp
Source§impl Debug for CondUnaryOp
impl Debug for CondUnaryOp
Source§impl<'de> Deserialize<'de> for CondUnaryOp
impl<'de> Deserialize<'de> for CondUnaryOp
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
impl Eq for CondUnaryOp
Source§impl PartialEq for CondUnaryOp
impl PartialEq for CondUnaryOp
Source§impl Serialize for CondUnaryOp
impl Serialize for CondUnaryOp
impl StructuralPartialEq for CondUnaryOp
Auto Trait Implementations§
impl Freeze for CondUnaryOp
impl RefUnwindSafe for CondUnaryOp
impl Send for CondUnaryOp
impl Sync for CondUnaryOp
impl Unpin for CondUnaryOp
impl UnsafeUnpin for CondUnaryOp
impl UnwindSafe for CondUnaryOp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.