macro_rules! signals {
[ $(! $tts: tt),* ] => { ... };
(@ []) => { ... };
(@ CP) => { ... };
(@ DBZ) => { ... };
(@ INEXACT) => { ... };
(@ INV) => { ... };
(@ OFW) => { ... };
(@ ROUND) => { ... };
(@ SN) => { ... };
(@ UFW) => { ... };
(@ [$t:tt]) => { ... };
(@ [$t:tt, $($tts:tt),*]) => { ... };
}Expand description
Macro helper for fast initializing of signals set.
ยงExamples
use fastnum::{*, decimal::*};
let signals = signals![!OFW, !CP];
assert_eq!(signals, Signals::OP_OVERFLOW.combine(Signals::OP_CLAMPED));