☰
num
Modules
bigint
cast
complex
integer
iter
pow
rational
traits
Structs
BigInt
BigUint
Complex
Traits
Bounded
CheckedAdd
CheckedDiv
CheckedMul
CheckedSub
Float
FromPrimitive
Integer
Num
NumCast
One
PrimInt
Saturating
Signed
ToPrimitive
Unsigned
Zero
Functions
abs
abs_sub
cast
checked_pow
clamp
one
pow
range
range_inclusive
range_step
range_step_inclusive
signum
zero
Type Definitions
BigRational
Rational
ayu
dark
light
All crates
?
[
−
]
[src]
Function
num
::
one
pub fn one<T>() -> T
where
T:
One
,
[
−
]
Expand description
Returns the multiplicative identity,
1
.