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§
- assert_
matches - Attempts to be a replacement for
assert!(matches!(...))
but with better error messages, and allowing further code on success. - labelled_
resolvable_ using_ resolvable_ impl - labelled_
resolvable_ with_ identity_ impl - resolvable_
with_ identity_ impl - resolvable_
with_ try_ into_ impls
Structs§
Traits§
- Contextual
Display - This trait is used where context is required to correctly display a value.
- Contextual
TryFrom - Contextual
TryInto - Label
Resolver - Labelled
Resolvable LabelledResolvable
is a marker trait, serving a few purposes:- Labelled
Resolve - This trait is intended to be used as an
impl
argument in helper methods, to accept a wider range of arguments. - Labelled
Resolve From - The inverse trait of
LabelledResolve
. - Resolvable
Resolvable
is a marker trait, mainly to make resolution opt-in and to avoid polluting every type with a resolve method.- Resolve
- This trait is intended to be used as an
impl
argument in helper methods, to accept a wider range of arguments. - Resolve
From - The inverse trait of
Resolve
.
Functions§
- combine
- Combines a u8 with a u8 slice.
- copy_
u8_ array - Copies a slice to a fixed-sized array.