Expand description
Modules§
- error
- Error-related types and traits.
Macros§
- compile_
error core
Causes compilation to fail with the given error message when encountered.- define_
panic_ handler - Defines a panic handler based on the chosen strategy.
- panic_
core
Panics the current thread.- todo
core
Indicates unfinished code.- unimplemented
core
Indicates unimplemented code.- unreachable
core
Indicates unreachable code.- unwrap
- An unwrapper macro that works in compile-time.
Structs§
- Backtrace
std
std
A captured OS thread stack backtrace.- Mismatch
- ⚖️
Represents a mismatch between an expected
need
and an encounteredhave
. - Option
Fmt - The type returned from
ExtOption::fmt_or_empty
. - Option
FmtOr - The type returned from
ExtOption::fmt_or
. - Option
FmtOr Else - The type returned from
ExtOption::fmt_or_else
. - Own
- ⚖️
A return type encapsulating an owned state
S
and a valueV
. - Panic
- 🌐 Panic-related operations.
- Panic
Assert Unwind Safe core
A simple wrapper around a type to assert that it is unwind safe.- Panic
Hook Info std
std
Passed tostd::panic::set_hook
instd
, where panics can have arbitrary payloads.- Panic
Info core
Passed to#[panic_handler]
inno_std
, where panics always carry a formatted message.- Panic
Location core
A struct containing information about the location of a panic.- Value
Quant - ⚖️ A value with associated quantification.
Enums§
- Backtrace
Status std
std
The current status of a backtrace.- Result
- ⚖️
core
A type that represents either success (Ok
) or failure (Err
).
Traits§
- Chain
- Allows chaining transformations by passing values through a sequence of functions.
- ExtOpt
Res - Extension trait providing additional methods for
OptRes
. - ExtOption
- Extension trait providing additional methods for
Option
. - ExtResult
- Extension trait providing additional methods for
Result
. - Hook
- Allows attaching operations or side effects to a value without breaking its flow.
- Panic
RefUnwind Safe core
A marker trait which represents a shared reference considered unwind safe.- Panic
Unwind Safe core
A marker trait which represents “panic safe” types in Rust.
Functions§
- serr
- Wraps the given
OptRes
value
in aSome
(
Err
(error))
. - sok
- Wraps the given
OptRes
value
in aSome
(
Ok
(value))
.
Type Aliases§
- OptRes
- ⚖️ An optional result for simple ternary logic.