pub enum GoExpr {
Plain(Expr),
OptionalSlot(Expr),
}Expand description
An expression, with the one property the walk’s seams cannot carry:
whether it is the pointer field an @optional member lives behind.
Only CodecTarget::optional_destination produces the marked form
and only CodecTarget::read_call and CodecTarget::store act
on it; every other constructor passes the inner expression through.
Variants§
Plain(Expr)
An ordinary expression.
OptionalSlot(Expr)
The *T-typed field of an @optional member, as a place a
decoded T is about to be written into.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GoExpr
impl RefUnwindSafe for GoExpr
impl Send for GoExpr
impl Sync for GoExpr
impl Unpin for GoExpr
impl UnsafeUnpin for GoExpr
impl UnwindSafe for GoExpr
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