af_utilities/types/
mod.rs

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
pub mod balance9;
pub mod errors;
pub mod fixed;
pub mod i256;
pub mod ifixed;
pub mod onchain;

pub use balance9::Balance9;
pub use fixed::*;
pub use i256::*;
pub use ifixed::*;

macro_rules! reuse_op_for_assign {
    ($type:ty {
        $($Assign:ident $method:ident $op:tt),* $(,)?
    }) => {
        $(
            impl $Assign for $type {
                fn $method(&mut self, rhs: Self) {
                    *self = *self $op rhs
                }
            }
        )*
    };
}

pub(crate) use reuse_op_for_assign;