pub struct CallArg {
pub value: Expr,
pub mode: ParamMode,
}Expand description
One positional call argument. Keeping the marker beside the expression makes mode information survive aliases and dynamic callable dispatch.
Fields§
§value: ExprThe source expression associated with this positional argument.
mode: ParamModeWhether the call site wrote an explicit ref marker.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallArg
impl RefUnwindSafe for CallArg
impl Send for CallArg
impl Sync for CallArg
impl Unpin for CallArg
impl UnsafeUnpin for CallArg
impl UnwindSafe for CallArg
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