Expand description
Each module should have its own prelude, which:
- Adds preludes of upstream crates
- Exports types with specific-enough names which mean they can safely be used downstream.
The idea is that we can just include the current crate’s prelude and avoid messing around with tons of includes. This makes refactors easier, and makes integration into the node less painful.
Re-exports§
Macros§
- Attempts to be a replacement for
assert!(matches!(...))
but with better error messages, and allowing further code on success.
Structs§
Traits§
- This trait is used where context is required to correctly display a value.
LabelledResolvable
is a marker trait, serving a few purposes:- This trait is intended to be used as an
impl
argument in helper methods, to accept a wider range of arguments. - The inverse trait of
LabelledResolve
. Resolvable
is a marker trait, mainly to make resolution opt-in and to avoid polluting every type with a resolve method.- This trait is intended to be used as an
impl
argument in helper methods, to accept a wider range of arguments. - The inverse trait of
Resolve
.
Functions§
- Combines a u8 with a u8 slice.
- Copies a slice to a fixed-sized array.