struct ImportObject { allow_missing_functions: bool, } impl ImportObject { fn new() -> Self; fn new_with_data(state_creator: F) -> Self; fn register(&mut self, name: S, namespace: N) -> Option>; fn with_namespace(&self, namespace: &str, f: Func) -> Option; fn maybe_with_namespace(&self, namespace: &str, f: Func) -> Option; fn contains_namespace(&self, name: &str) -> bool; }