pub fn currval<S: Storage>(seq: &Singleton<'_, S, u64>) -> StdResult<u64>
Expand description

currval returns the last value returned by nextval. If the sequence has never been used, then it will return 0.