Struct okane_core::repl::expr::UnaryOpExpr
source · pub struct UnaryOpExpr<'i> {
pub op: UnaryOp,
pub expr: Box<Expr<'i>>,
}Expand description
Unary operator expression.
Fields§
§op: UnaryOp§expr: Box<Expr<'i>>Trait Implementations§
source§impl<'i> Clone for UnaryOpExpr<'i>
impl<'i> Clone for UnaryOpExpr<'i>
source§fn clone(&self) -> UnaryOpExpr<'i>
fn clone(&self) -> UnaryOpExpr<'i>
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<'i> Debug for UnaryOpExpr<'i>
impl<'i> Debug for UnaryOpExpr<'i>
source§impl<'i> IntoBoundedStatic for UnaryOpExpr<'i>
impl<'i> IntoBoundedStatic for UnaryOpExpr<'i>
§type Static = UnaryOpExpr<'static>
type Static = UnaryOpExpr<'static>
The target type is bounded by the
'static lifetime.source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T into an owned T such that T: 'static.source§impl<'i> PartialEq for UnaryOpExpr<'i>
impl<'i> PartialEq for UnaryOpExpr<'i>
source§fn eq(&self, other: &UnaryOpExpr<'i>) -> bool
fn eq(&self, other: &UnaryOpExpr<'i>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'i> ToBoundedStatic for UnaryOpExpr<'i>
impl<'i> ToBoundedStatic for UnaryOpExpr<'i>
impl<'i> Eq for UnaryOpExpr<'i>
impl<'i> StructuralPartialEq for UnaryOpExpr<'i>
Auto Trait Implementations§
impl<'i> Freeze for UnaryOpExpr<'i>
impl<'i> RefUnwindSafe for UnaryOpExpr<'i>
impl<'i> Send for UnaryOpExpr<'i>
impl<'i> Sync for UnaryOpExpr<'i>
impl<'i> Unpin for UnaryOpExpr<'i>
impl<'i> UnwindSafe for UnaryOpExpr<'i>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)