Skip to main content
clamp_to_pos
tor_
netdir
0.41.0
In tor_
netdir::
weight
tor_netdir
::
weight
Function
clamp_
to_
pos
Copy item path
Source
fn clamp_to_pos(inp:
i32
) ->
u32
Expand description
If
inp
is less than 0, return 0. Otherwise return
inp
as a u32.