Expand description
Provides stable const implementations for some things missing from the standard library.
Currently implemented are
- Functions in the [
concat
] module to concat const strings and byte slices. destruct_tuple
to destructure tuples with generic types or types with drop glue in themmem::nonnull_from
to createcore::ptr::NonNull
s from mutable and regular references convenientlymem::man_drop_ref
/mem::man_drop_mut
as a workaround for the lack of constDeref
implementations
Modules§
Macros§
- destruct_
tuple - Allows destructuring tuples in
const
contexts, regardless of items having drop glue.
Traits§
- Const
- A constant value
Functions§
- value_
of - Alias for
Const::VALUE
.