enum ExpressionPointer {
Ready {
pointer_id: Word,
},
Conditional {
condition: Word,
access: Instruction,
},
}
Expand description
The results of emitting code for a left-hand-side expression.
On success, write_access_chain
returns one of these.
Variants§
Ready
The pointer to the expression’s value is available, as the value of the expression with the given id.
Conditional
The access expression must be conditional on the value of condition
, a boolean
expression that is true if all indices are in bounds. If condition
is true, then
access
is an OpAccessChain
instruction that will compute a pointer to the
expression’s value. If condition
is false, then executing access
would be
undefined behavior.
Auto Trait Implementations§
impl Freeze for ExpressionPointer
impl RefUnwindSafe for ExpressionPointer
impl Send for ExpressionPointer
impl Sync for ExpressionPointer
impl Unpin for ExpressionPointer
impl UnwindSafe for ExpressionPointer
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