pub struct UnOperator {
pub kind: UnOpKind,
pub token: Token,
}Expand description
Represents a unary operator in the AST.
Fields§
§kind: UnOpKindThe specific kind of unary operator.
token: TokenThe token representing the unary operator in the source code.
Implementations§
Source§impl UnOperator
impl UnOperator
Trait Implementations§
Source§impl Clone for UnOperator
impl Clone for UnOperator
Source§fn clone(&self) -> UnOperator
fn clone(&self) -> UnOperator
Returns a duplicate 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 UnOperator
impl Debug for UnOperator
Source§impl PartialEq for UnOperator
impl PartialEq for UnOperator
impl StructuralPartialEq for UnOperator
Auto Trait Implementations§
impl Freeze for UnOperator
impl RefUnwindSafe for UnOperator
impl Send for UnOperator
impl Sync for UnOperator
impl Unpin for UnOperator
impl UnwindSafe for UnOperator
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