Expand description
Modules§
- Error-related types and traits.
Macros§
core
Causes compilation to fail with the given error message when encountered.core
Panics the current thread.core
Indicates unfinished code.core
Indicates unimplemented code.core
Indicates unreachable code.- An unwrapper macro that works in compile-time.
Structs§
- Backtrace
std
std
A captured OS thread stack backtrace. - Represents a mismatch between an expected
need
and an encounteredhave
. - The type returned from
ExtOption::fmt_or_empty
. - The type returned from
ExtOption::fmt_or
. - The type returned from
ExtOption::fmt_or_else
. - A return type encapsulating an owned state
S
and a valueV
. core
A simple wrapper around a type to assert that it is unwind safe.core
A struct providing information about a panic.core
A struct containing information about the location of a panic.- A value with associated quantification.
Enums§
std
The current status of a backtrace.
Traits§
- Allows chaining transformations by passing values through a sequence of functions.
- Extension trait providing additional methods for
OptRes
. - Extension trait providing additional methods for
Option
. - Extension trait providing additional methods for
Result
. - Allows attaching operations or side effects to a value without breaking its flow.
core
A marker trait which represents a shared reference considered unwind safe.core
A marker trait which represents “panic safe” types in Rust.
Functions§
- panic_
any std
std
Panic the current thread with the given message as the panic payload. - panic_
catch std
std
Invokes a closure, capturing the cause of an unwinding panic if one occurs. - panic_
resume std
std
Triggers a panic without invoking the panic hook. std
Registers a custom panic hook, replacing the previously registered hook.std
Unregisters the current panic hook, returns it and registers the default hook in its place.
Type Aliases§
- An optional result for simple ternary logic.