Macro kaguya_rs::signum[][src]

macro_rules! signum {
    (>$t:ty) => { ... };
    ($x:expr) => { ... };
}

Signum of signed

Syntax:

  1. signum(>type) :: Signed type => type -> -1|0|1
  2. signum(x) -> -1|0|1