Struct endbasic_core::ast::UnaryOpSpan
source · pub struct UnaryOpSpan {
pub expr: Expr,
pub pos: LineCol,
}
Expand description
Components of a unary operation expression.
Fields§
§expr: Expr
Expression affected by the operator.
pos: LineCol
Starting position of the operator.
Trait Implementations§
source§impl Clone for UnaryOpSpan
impl Clone for UnaryOpSpan
source§fn clone(&self) -> UnaryOpSpan
fn clone(&self) -> UnaryOpSpan
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 UnaryOpSpan
impl Debug for UnaryOpSpan
source§impl PartialEq for UnaryOpSpan
impl PartialEq for UnaryOpSpan
source§fn eq(&self, other: &UnaryOpSpan) -> bool
fn eq(&self, other: &UnaryOpSpan) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UnaryOpSpan
Auto Trait Implementations§
impl Freeze for UnaryOpSpan
impl RefUnwindSafe for UnaryOpSpan
impl Send for UnaryOpSpan
impl Sync for UnaryOpSpan
impl Unpin for UnaryOpSpan
impl UnwindSafe for UnaryOpSpan
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
)