pub struct CallArgs { /* private fields */ }Expand description
The positional and keyword arguments of one function or OS call. A sub-object shared within an exported call stays shared at the host boundary.
Implementations§
Source§impl CallArgs
impl CallArgs
Sourcepub fn push_arg(&mut self, value: MontyObject)
pub fn push_arg(&mut self, value: MontyObject)
Appends a positional argument.
Sourcepub fn push_kwarg(&mut self, name: &str, value: MontyObject)
pub fn push_kwarg(&mut self, name: &str, value: MontyObject)
Appends a keyword argument with a string key.
Sourcepub fn args(&self) -> impl ExactSizeIterator<Item = ObjectRef<'_>>
pub fn args(&self) -> impl ExactSizeIterator<Item = ObjectRef<'_>>
The positional arguments, in order.
Sourcepub fn kwargs(
&self,
) -> impl ExactSizeIterator<Item = (ObjectRef<'_>, ObjectRef<'_>)>
pub fn kwargs( &self, ) -> impl ExactSizeIterator<Item = (ObjectRef<'_>, ObjectRef<'_>)>
The keyword arguments as (key, value) views, in order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CallArgs
impl<'de> Deserialize<'de> for CallArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CallArgs
Source§impl From<(Vec<MontyObject>, Vec<(MontyObject, MontyObject)>)> for CallArgs
Positional and keyword arguments, in order.
impl From<(Vec<MontyObject>, Vec<(MontyObject, MontyObject)>)> for CallArgs
Positional and keyword arguments, in order.
Source§fn from(
(args, kwargs): (Vec<MontyObject>, Vec<(MontyObject, MontyObject)>),
) -> Self
fn from( (args, kwargs): (Vec<MontyObject>, Vec<(MontyObject, MontyObject)>), ) -> Self
Converts to this type from the input type.
Source§impl From<Vec<MontyObject>> for CallArgs
Positional-only arguments; concrete so an empty vec![] infers.
impl From<Vec<MontyObject>> for CallArgs
Positional-only arguments; concrete so an empty vec![] infers.
Source§fn from(args: Vec<MontyObject>) -> Self
fn from(args: Vec<MontyObject>) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for CallArgs
Auto Trait Implementations§
impl Freeze for CallArgs
impl RefUnwindSafe for CallArgs
impl Send for CallArgs
impl Sync for CallArgs
impl Unpin for CallArgs
impl UnsafeUnpin for CallArgs
impl UnwindSafe for CallArgs
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