pub struct CallSignature { /* private fields */ }Expand description
A language-neutral call signature.
Positional parameters are filled in declaration order. Named parameters are addressable only by name. Each unmatched partition is independently either prohibited or collected into a variadic binding.
Implementations§
Source§impl CallSignature
impl CallSignature
Sourcepub fn with_positional(self, parameters: Vec<CallParameter>) -> Self
pub fn with_positional(self, parameters: Vec<CallParameter>) -> Self
Replaces the ordered positional partition.
Sourcepub fn with_named(self, parameters: Vec<CallParameter>) -> Self
pub fn with_named(self, parameters: Vec<CallParameter>) -> Self
Replaces the named partition.
Sourcepub fn with_positional_remainder(self, remainder: Remainder) -> Self
pub fn with_positional_remainder(self, remainder: Remainder) -> Self
Selects how unmatched positional arguments are handled.
Sourcepub fn with_named_remainder(self, remainder: Remainder) -> Self
pub fn with_named_remainder(self, remainder: Remainder) -> Self
Selects how unmatched named arguments are handled.
Sourcepub fn bind(
&self,
arguments: impl IntoIterator<Item = CallArgument>,
) -> Result<BoundCall>
pub fn bind( &self, arguments: impl IntoIterator<Item = CallArgument>, ) -> Result<BoundCall>
Validates the declaration and binds a call without invoking its body.
Trait Implementations§
Source§impl Clone for CallSignature
impl Clone for CallSignature
Source§fn clone(&self) -> CallSignature
fn clone(&self) -> CallSignature
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 moreSource§impl Debug for CallSignature
impl Debug for CallSignature
Source§impl Default for CallSignature
impl Default for CallSignature
Source§fn default() -> CallSignature
fn default() -> CallSignature
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CallSignature
impl !UnwindSafe for CallSignature
impl Freeze for CallSignature
impl Send for CallSignature
impl Sync for CallSignature
impl Unpin for CallSignature
impl UnsafeUnpin for CallSignature
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