devela/code/result/panic/
reexports.rsuse crate::reexport;
reexport! { rust: core::panic,
doc: "A struct providing information about a panic.",
PanicInfo
}
reexport! { rust: core::panic,
doc: "A struct containing information about the location of a panic.",
@Location as PanicLocation
}
reexport! { rust: core::panic,
doc: "A simple wrapper around a type to assert that it is unwind safe.",
@AssertUnwindSafe as PanicAssertUnwindSafe
}
reexport! { rust: core::panic,
doc: "A marker trait which represents a shared reference considered unwind safe.",
@RefUnwindSafe as PanicRefUnwindSafe
}
reexport! { rust: core::panic,
doc: "A marker trait which represents “panic safe” types in Rust.",
@UnwindSafe as PanicUnwindSafe
}
reexport! { rust: std::panic,
doc: "Invokes a closure, capturing the cause of an unwinding panic if one occurs.",
@catch_unwind as panic_catch
}
reexport! { rust: std::panic,
doc: "Panic the current thread with the given message as the panic payload.",
panic_any
}
reexport! { rust: std::panic,
doc: "Triggers a panic without invoking the panic hook.",
@resume_unwind as panic_resume
}
reexport! { rust: std::panic,
doc: "Registers a custom panic hook, replacing the previously registered hook.",
@set_hook as panic_set_hook
}
reexport! { rust: std::panic,
doc: "Unregisters the current panic hook, returns it and registers
the default hook in its place.",
@take_hook as panic_unset_hook
}
reexport! { rust: core, doc: "Indicates unfinished code.", todo }
reexport! { rust: core, doc: "Indicates unreachable code.", unreachable }
reexport! { rust: core, doc: "Indicates unimplemented code.", unimplemented }
#[doc = "*Re-exported from [`core::panic`][macro@crate::_core::panic]*."]
#[doc = "\n\n---"]
#[macro_export]
#[cfg_attr(cargo_primary_package, doc(hidden))]
macro_rules! panic_ { ($($tt:tt)*) => { core::panic![$($tt)*] } }
#[doc(inline)]
pub use panic_;