bagel 0.1.3

Compile-time evaluation and other tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate alloc;
use crate::Constdef;

mod vec {
    use super::*;
    use alloc::vec::Vec;
    impl<T> Constdef for Vec<T> {
        const DEFAULT: Self = new!();
    }
}

mod string {
    use super::*;
    use alloc::string::String;
    impl Constdef for String {
        const DEFAULT: Self = new!();
    }
}