-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib.rs
27 lines (26 loc) · 888 Bytes
/
lib.rs
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
#![warn(missing_docs)]
//! This crate exposes const equivalents of standard library types that are usable on stable.
//!
//! ```rust
//! use konster::kstr::KStr;
//!
//! const _: () = {
//! let mut str = KStr::<20>::new();
//! str = str.push(4);
//! let (str, val) = match str.pop() {
//! Some((str,val)) => (str, val),
//! _ => unreachable!(),
//! };
//! if !str.is_empty() {
//! panic!("Str is not empty");
//! }
//! };
//! ```
/// This module contains a Map like struct that can be used in const context
pub mod kmap;
/// This module contains a Set like struct that can be used in const context
pub mod kset;
/// This module contains a Vector like struct that can be used in const context
pub mod kstr;
/// This module contains a String like struct that can be used in const context
pub mod kvec;