ggmath/backend_impls/
default_impls.rs1use crate::{Alignment, Length, ScalarDefault, SupportedLength};
2
3impl ScalarDefault for f64 {}
4impl ScalarDefault for i8 {}
5impl ScalarDefault for i16 {}
6impl ScalarDefault for i32 {}
7impl ScalarDefault for i64 {}
8impl ScalarDefault for i128 {}
9impl ScalarDefault for isize {}
10impl ScalarDefault for u8 {}
11impl ScalarDefault for u16 {}
12impl ScalarDefault for u32 {}
13impl ScalarDefault for u64 {}
14impl ScalarDefault for u128 {}
15impl ScalarDefault for usize {}
16impl ScalarDefault for bool {}
17
18impl<const N: usize, A: Alignment> crate::vector::f64::FloatBackend<N, A> for f64 where
19 Length<N>: SupportedLength
20{
21}
22
23impl<const N: usize, A: Alignment> crate::vector::i8::IntBackend<N, A> for i8 where
24 Length<N>: SupportedLength
25{
26}
27
28impl<const N: usize, A: Alignment> crate::vector::i16::IntBackend<N, A> for i16 where
29 Length<N>: SupportedLength
30{
31}
32
33impl<const N: usize, A: Alignment> crate::vector::i32::IntBackend<N, A> for i32 where
34 Length<N>: SupportedLength
35{
36}
37
38impl<const N: usize, A: Alignment> crate::vector::i64::IntBackend<N, A> for i64 where
39 Length<N>: SupportedLength
40{
41}
42
43impl<const N: usize, A: Alignment> crate::vector::i128::IntBackend<N, A> for i128 where
44 Length<N>: SupportedLength
45{
46}
47
48impl<const N: usize, A: Alignment> crate::vector::isize::IntBackend<N, A> for isize where
49 Length<N>: SupportedLength
50{
51}
52
53impl<const N: usize, A: Alignment> crate::vector::u8::UintBackend<N, A> for u8 where
54 Length<N>: SupportedLength
55{
56}
57
58impl<const N: usize, A: Alignment> crate::vector::u16::UintBackend<N, A> for u16 where
59 Length<N>: SupportedLength
60{
61}
62
63impl<const N: usize, A: Alignment> crate::vector::u32::UintBackend<N, A> for u32 where
64 Length<N>: SupportedLength
65{
66}
67
68impl<const N: usize, A: Alignment> crate::vector::u64::UintBackend<N, A> for u64 where
69 Length<N>: SupportedLength
70{
71}
72
73impl<const N: usize, A: Alignment> crate::vector::u128::UintBackend<N, A> for u128 where
74 Length<N>: SupportedLength
75{
76}
77
78impl<const N: usize, A: Alignment> crate::vector::usize::UintBackend<N, A> for usize where
79 Length<N>: SupportedLength
80{
81}