Module sign
num_
traits
0.2.19
Module sign
Module Items
Traits
Functions
In crate num_
traits
Modules
bounds
cast
float
identities
int
ops
pow
real
sign
Structs
ParseFloatError
Enums
FloatErrorKind
Traits
Num
NumAssign
NumAssignOps
NumAssignRef
NumOps
NumRef
RefNum
Functions
clamp
clamp_max
clamp_min
num_traits
Module
sign
Copy item path
Settings
Help
Summary
Source
Traits
§
Signed
Useful functions for signed numbers (i.e. numbers that can be negative).
Unsigned
A trait for values which cannot be negative
Functions
§
abs
Computes the absolute value.
abs_sub
The positive difference of two numbers.
signum
Returns the sign of the number.