Skip to main content

hopnum_from_hop_idx

Function hopnum_from_hop_idx 

Source
fn hopnum_from_hop_idx(hop_idx: usize) -> HopNum
Expand description

Construct a HopNum from an index into the hops field of a PaddingShared.

ยงPanics

Panics if hop_idx is greater than u8::MAX, which should be impossible.