Function clippy::consts::is_negative [] [src]

pub fn is_negative(ty: LitIntType) -> bool

is the given LitIntType negative?

Examples

assert!(is_negative(UnsuffixedIntLit(Minus)));