pub struct Operation<'a> {
pub operands: &'a [ContentToken],
pub operator: &'a ContentToken,
}Expand description
One semantic operation: the projection’s unit (module docs).
Fields§
§operands: &'a [ContentToken]The operand tokens preceding the operator, in order. Their
Operand payloads are the arguments (“all of the operands
needed by an operator shall immediately precede that
operator”, §7.8.2).
operator: &'a ContentTokenThe operator token (ContentTokenKind::Operator — read its
name via Operation::operator_name — or an
ContentTokenKind::InlineImage, which is its own complete
operation).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Operation<'a>
impl<'a> Freeze for Operation<'a>
impl<'a> Move for Operation<'a>
impl<'a> RefUnwindSafe for Operation<'a>
impl<'a> Send for Operation<'a>
impl<'a> Sync for Operation<'a>
impl<'a> Unpin for Operation<'a>
impl<'a> UnsafeUnpin for Operation<'a>
impl<'a> UnwindSafe for Operation<'a>
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