1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#![macro_use] #![allow(unused_macros)] macro_rules! clip { ($lb:expr, $x:expr, $ub:expr) => {{ $lb.max($ub.min($x)) }}; } macro_rules! import_all { ($module:ident) => { mod $module; pub use self::$module::*; }; }