Skip to main content

position

Function position 

Source
pub fn position(number: u64) -> usize
Expand description

The position of the constructor a declared message writes with number among its type’s constructors, which number them from 0.

§Panics

Never on a 64-bit target; on a narrower one, for a number past its usize.