pub enum ParamMode {
Value,
Ref,
Rest,
}Expand description
The passing mode declared by a function parameter or written at a call
site. Ref is explicit on both sides; engines use this metadata during
call preflight before evaluating argument expressions.
Variants§
Value
An ordinary positional argument passed with value semantics.
Ref
A transactional copy-in/copy-out argument marked with ref.
Rest
The final declaration parameter collecting remaining value arguments.
This mode never appears on a call-site CallArg.
Trait Implementations§
impl Copy for ParamMode
impl Eq for ParamMode
impl StructuralPartialEq for ParamMode
Auto Trait Implementations§
impl Freeze for ParamMode
impl RefUnwindSafe for ParamMode
impl Send for ParamMode
impl Sync for ParamMode
impl Unpin for ParamMode
impl UnsafeUnpin for ParamMode
impl UnwindSafe for ParamMode
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