struct Shim {
moved: Punctuated<Meta, Comma>,
in_impl: bool,
export_name: Ident,
}Expand description
What the shim needs beyond the function’s own signature.
Fields§
§moved: Punctuated<Meta, Comma>wasm_bindgen(..) arguments taken off the function, which travel with the shim.
in_impl: boolWhether the item sits in an impl block, so an associated function is called through
Self::.
export_name: IdentThe function’s name before any #[wasm_only] rename, which is the JS-facing name.
Auto Trait Implementations§
impl !Send for Shim
impl !Sync for Shim
impl Freeze for Shim
impl RefUnwindSafe for Shim
impl Unpin for Shim
impl UnsafeUnpin for Shim
impl UnwindSafe for Shim
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