pub struct UnaryOpContext<Prim: PrimitiveType> {
pub op: UnaryOp,
pub arg: Type<Prim>,
}Expand description
Code spans related to a unary operation.
Used in TypeArithmetic::process_unary_op().
Fields§
§op: UnaryOpUnary operation.
arg: Type<Prim>Operation argument.
Trait Implementations§
Source§impl<Prim: Clone + PrimitiveType> Clone for UnaryOpContext<Prim>
impl<Prim: Clone + PrimitiveType> Clone for UnaryOpContext<Prim>
Source§fn clone(&self) -> UnaryOpContext<Prim>
fn clone(&self) -> UnaryOpContext<Prim>
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<Prim: Debug + PrimitiveType> Debug for UnaryOpContext<Prim>
impl<Prim: Debug + PrimitiveType> Debug for UnaryOpContext<Prim>
Source§impl<Prim: PrimitiveType> From<UnaryOpContext<Prim>> for ErrorContext<Prim>
impl<Prim: PrimitiveType> From<UnaryOpContext<Prim>> for ErrorContext<Prim>
Source§fn from(value: UnaryOpContext<Prim>) -> Self
fn from(value: UnaryOpContext<Prim>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Prim> Freeze for UnaryOpContext<Prim>where
Prim: Freeze,
impl<Prim> !RefUnwindSafe for UnaryOpContext<Prim>
impl<Prim> Send for UnaryOpContext<Prim>
impl<Prim> Sync for UnaryOpContext<Prim>
impl<Prim> Unpin for UnaryOpContext<Prim>where
Prim: Unpin,
impl<Prim> !UnwindSafe for UnaryOpContext<Prim>
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