pub struct PreparedArgs { /* private fields */ }Expand description
A positional tuple of prepared call arguments.
Produced by EvalPolicy::prepare_call_args,
it carries the values (eager, thunked, or quoted, per the policy and the
per-position Demand) that a callable receives.
§Examples
use sim_kernel::eval::PreparedArgs;
let args = PreparedArgs::new(Vec::new());
assert!(args.is_empty());
assert_eq!(args.len(), 0);
assert!(args.get(0).is_none());Implementations§
Trait Implementations§
Source§impl Clone for PreparedArgs
impl Clone for PreparedArgs
Source§fn clone(&self) -> PreparedArgs
fn clone(&self) -> PreparedArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PreparedArgs
impl !UnwindSafe for PreparedArgs
impl Freeze for PreparedArgs
impl Send for PreparedArgs
impl Sync for PreparedArgs
impl Unpin for PreparedArgs
impl UnsafeUnpin for PreparedArgs
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