1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//! This crate has a few items reexported by `konst`, and used by `const_panic`.
//!
//! None of the items in this crate are documented,
//! because they are documented in the 0.3 `konst` crate.
//!
//!
#![no_std]
#![cfg_attr(feature = "nightly_mut_refs", feature(const_mut_refs))]
#![cfg_attr(feature = "docsrs", feature(doc_cfg))]
#![deny(unused_results)]
#![allow(clippy::type_complexity)]
#![forbid(clippy::missing_const_for_fn)]

#[cfg(feature = "alloc")]
extern crate alloc;

#[macro_use]
mod macros;

#[doc(hidden)]
#[cfg(feature = "__for_konst")]
#[cfg(feature = "iter")]
pub mod collect_const;

#[cfg(feature = "__for_konst")]
pub mod chr;

#[doc(hidden)]
#[cfg(feature = "__for_konst")]
#[cfg(feature = "iter")]
pub mod into_iter;

#[doc(hidden)]
#[cfg(feature = "__for_konst")]
#[cfg(feature = "iter")]
pub mod iter;

pub mod type_eq;

#[doc(hidden)]
#[cfg(feature = "__for_konst")]
pub mod maybe_uninit;

#[cfg(feature = "rust_1_64")]
#[cfg_attr(feature = "docsrs", doc(cfg(feature = "rust_1_64")))]
pub mod slice;

#[cfg(feature = "rust_1_64")]
#[cfg_attr(feature = "docsrs", doc(cfg(feature = "rust_1_64")))]
pub mod string;

#[cfg(feature = "iter")]
pub mod step_kk;

#[cfg(feature = "__for_konst")]
pub mod polymorphism;

#[doc(hidden)]
pub mod __unsafe_utils;

#[cfg(feature = "rust_1_64")]
#[doc(hidden)]
pub mod utils;

#[doc(hidden)]
pub mod __ {
    pub use typewit::{
        HasTypeWitness, Identity, MakeTypeWitness, TypeEq, TypeFn, TypeWitnessTypeArg,
    };

    #[cfg(feature = "__for_konst")]
    pub use crate::{
        macros::array_macros::{assert_array, uninit_array_of_len, unit_array},
        maybe_uninit::{array_assume_init, uninit_array},
        type_eq::make_project_fn::__make_projection_parse_generics,
    };

    #[cfg(feature = "iter")]
    pub use crate::{
        collect_const::CollectorCmd,
        into_iter::{IntoIterWrapper, IsConstIntoIter},
    };

    pub use core::{
        assert, compile_error, concat,
        marker::PhantomData,
        mem::{forget, ManuallyDrop, MaybeUninit},
        ops::Range,
        option::Option::{self, None, Some},
        panic,
        primitive::{bool, str, u8, usize},
        result::Result::{self, Err, Ok},
        stringify,
    };
}