var searchIndex = {}; searchIndex["abort_on_panic"] = {"doc":"When calling Rust code from C, it's unsafe to call `panic!`. Doing so\nmay cause unsafe behavior. But when calling user-defined functions,\nwe sometimes need to enforce these rules.","items":[[3,"PanicGuard","abort_on_panic","Once this object is created, it can only be destroyed in an orderly\nfashion. Attempting to clean it up from a panic handler will abort the\nprocess.",null,null],[11,"new","","Create a panic guard with a generic message.",0,{"inputs":[],"output":{"name":"panicguard"}}],[11,"with_message","","Create a panic guard with a custom message.",0,{"inputs":[{"name":"str"}],"output":{"name":"panicguard"}}],[11,"drop","","",0,null],[14,"abort_on_panic!","","Run a block of code, aborting the entire process if it tries to panic.",null,null]],"paths":[[3,"PanicGuard"]]}; initSearch(searchIndex);