Skip to main content

check_exportable_type

Function check_exportable_type 

Source
pub(crate) fn check_exportable_type(item: &Item, macro_name: &str) -> Result<()>
Expand description

Rejects an item #[wasm_bindgen] cannot export: anything that is not a struct or an enum, and any generic parameters on one.