pub struct Unop<S = ()> {
pub op: UnaryOperator,
pub e: Box<Expression<S>>,
}Expand description
A prefix operator and its operand.
Fields§
§op: UnaryOperatorWhich operator.
e: Box<Expression<S>>The operand.
Implementations§
Source§impl Unop
impl Unop
Sourcepub fn pretty_print(&self, spec: &impl PcodeResolver) -> String
pub fn pretty_print(&self, spec: &impl PcodeResolver) -> String
Renders this unary expression in a diagnostic-oriented SLEIGH-like syntax.
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for Unop<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Unop<S>where
S: Deserialize<'de>,
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<S: Eq> Eq for Unop<S>
impl<S: PartialEq> StructuralPartialEq for Unop<S>
Auto Trait Implementations§
impl<S> Freeze for Unop<S>
impl<S> RefUnwindSafe for Unop<S>
impl<S> Send for Unop<S>
impl<S> Sync for Unop<S>
impl<S> Unpin for Unop<S>
impl<S> UnsafeUnpin for Unop<S>
impl<S> UnwindSafe for Unop<S>
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