pub struct TypedParam {
pub name: Ident,
pub optional: bool,
pub ty: Type,
pub boxed: bool,
pub rest: bool,
pub default: Option<DefaultValue>,
}Fields§
§name: Ident§optional: boolWhether the caller may omit this parameter.
ty: Type§boxed: boolSet by Capture when an inner closure captures this param. The Wasm signature
is unaffected — codegen emits a body prologue that wraps the arg into
(ref $box T) and shadows it; all subsequent reads/writes go through the box.
rest: boolCallee sees T[]; call sites pre-pack trailing args. Only valid on the last param.
default: Option<DefaultValue>Resolved default for an omitted argument, carried so PackageDeclaration
can export it — without it, cross-module calls can’t omit the arg.
Trait Implementations§
Source§impl Clone for TypedParam
impl Clone for TypedParam
Source§impl Debug for TypedParam
impl Debug for TypedParam
Source§impl PartialEq for TypedParam
impl PartialEq for TypedParam
impl StructuralPartialEq for TypedParam
Auto Trait Implementations§
impl Freeze for TypedParam
impl RefUnwindSafe for TypedParam
impl Send for TypedParam
impl Sync for TypedParam
impl Unpin for TypedParam
impl UnsafeUnpin for TypedParam
impl UnwindSafe for TypedParam
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