Expand description
Provides stable const implementations for some things missing from the standard library.
Currently implemented are
- Functions in
resultto unwrapResults with generics or drop glue - Functions in the
concatmodule to concat const strings and byte slices. destruct_tupleto destructure tuples with generic types or types with drop glue in themnonnull_fromto createNonNulls from mutable and regular references convenientlyman_drop_ref/man_drop_mutas a workaround for the lack of constDerefimplementations- Functions in
sliceto take subslices using ranges
Re-exports§
pub extern crate type_const;
Modules§
- concat
- Functions for concatenating slices
- mem
- Functions related to
core::memandcore::ptr - result
- Functions for unwrapping
Results - slice
- Const variants of functions for dealing with slices
Macros§
- destruct_
tuple - Allows destructuring tuples in
constcontexts, regardless of items having drop glue.
Traits§
- Const
- Describes a type that holds an associated const value.
Functions§
- value_
of - Alias for
Const::VALUE. Prefer this function over accessing the const directly.