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
use std::collections::{BTreeMap, HashMap};
use crate::prelude::*;

#[cfg(feature = "cstring")]
impl PrimitiveType for CString {}

impl PrimitiveType for String {}

impl PrimitiveType for bool {}

impl PrimitiveType for str {}

impl PrimitiveType for &str {}

impl PrimitiveType for StringB {}

impl PrimitiveType for Array {}

impl PrimitiveType for DateTime {}

impl PrimitiveType for Number {}

impl PrimitiveType for Object {}

impl<K, V, S> PrimitiveType for HashMap<K, V, S> {}

impl<K, V> PrimitiveType for BTreeMap<K, V> {}

impl<V> PrimitiveType for Vec<V> {}

impl<V> PrimitiveType for Option<V> {}

// Numerics
impl PrimitiveType for u8 {}

impl PrimitiveType for u16 {}

impl PrimitiveType for u32 {}

impl PrimitiveType for u64 {}

impl PrimitiveType for u128 {}

impl PrimitiveType for i8 {}

impl PrimitiveType for i16 {}

impl PrimitiveType for i32 {}

impl PrimitiveType for i64 {}

impl PrimitiveType for i128 {}

impl PrimitiveType for f32 {}

impl PrimitiveType for f64 {}