1use crate::{FixedUnsigned, FixedScale};
2
3
4
5#[derive(Clone, Debug)]
18pub struct FixedScale4 {}
19impl FixedScale for FixedScale4 {
20 const SCALE: u64 = 4;
21}
22pub type FixedUnsigned4 = FixedUnsigned<FixedScale4>;
23
24
25#[derive(Clone, Debug)]
27pub struct FixedScale8 {}
28impl FixedScale for FixedScale8 {
29 const SCALE: u64 = 8;
30}
31pub type FixedUnsigned8 = FixedUnsigned<FixedScale8>;
32
33
34#[derive(Clone, Debug)]
36pub struct FixedScale16 {}
37impl FixedScale for FixedScale16 {
38 const SCALE: u64 = 16;
39}
40pub type FixedUnsigned16 = FixedUnsigned<FixedScale16>;
41
42
43#[derive(Clone, Debug)]
47pub struct FixedScale10 {}
48impl FixedScale for FixedScale10 {
49 const SCALE: u64 = 10;
50}
51pub type FixedUnsigned10 = FixedUnsigned<FixedScale10>;
52
53
54#[derive(Clone, Debug)]
58pub struct FixedScale26 {}
59impl FixedScale for FixedScale26 {
60 const SCALE: u64 = 26;
61}
62pub type FixedUnsigned26 = FixedUnsigned<FixedScale26>;