pub struct Definition {
pub inputs: Vec<Input>,
pub is_iterator: bool,
}
Expand description
The definition of a function-closure block a function expects to receive.
Fields§
§inputs: Vec<Input>
A list of input configurations valid for this closure definition.
is_iterator: bool
Defines whether the closure is expected to iterate over the elements of a collection.
If this is true
, the compiler will (1) reject any non-iterable types
passed to this closure, and (2) use the type definition of inner
collection elements to determine the eventual type definition of the
closure variable(s) (see Variable
).
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
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