Skip to main content

check_exportable

Function check_exportable 

Source
fn check_exportable(
    generics: &Generics,
    item_attrs: &[Attribute],
    kind: &str,
) -> Result<()>
Expand description

Rejects a generic item, which wasm_bindgen cannot export, and a leftover #[wasm_bindgen].

kind names the item in the error, plural, as in “generic impl blocks”.