valu3/
primitives.rs

1use std::collections::{BTreeMap, HashMap};
2use crate::prelude::*;
3
4#[cfg(feature = "cstring")]
5impl PrimitiveType for CString {}
6
7impl PrimitiveType for String {}
8
9impl PrimitiveType for bool {}
10
11impl PrimitiveType for str {}
12
13impl PrimitiveType for &str {}
14
15impl PrimitiveType for StringB {}
16
17impl PrimitiveType for Array {}
18
19impl PrimitiveType for DateTime {}
20
21impl PrimitiveType for Number {}
22
23impl PrimitiveType for Object {}
24
25impl<K, V, S> PrimitiveType for HashMap<K, V, S> {}
26
27impl<K, V> PrimitiveType for BTreeMap<K, V> {}
28
29impl<V> PrimitiveType for Vec<V> {}
30
31impl<V> PrimitiveType for Option<V> {}
32
33// Numerics
34impl PrimitiveType for u8 {}
35
36impl PrimitiveType for u16 {}
37
38impl PrimitiveType for u32 {}
39
40impl PrimitiveType for u64 {}
41
42impl PrimitiveType for u128 {}
43
44impl PrimitiveType for i8 {}
45
46impl PrimitiveType for i16 {}
47
48impl PrimitiveType for i32 {}
49
50impl PrimitiveType for i64 {}
51
52impl PrimitiveType for i128 {}
53
54impl PrimitiveType for f32 {}
55
56impl PrimitiveType for f64 {}
57
58impl PrimitiveType for usize {}
59
60impl PrimitiveType for isize {}