[][src]Function cw_storage::currval

pub fn currval<S: Storage>(seq: &Singleton<S, SeqVal>) -> Result<u64>

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