MCPcopy Create free account
hub / github.com/RustCrypto/formats / next

Method next

der/src/arrayvec.rs:115–123  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

113 type Item = &'a T;
114
115 fn next(&mut self) -> Option<&'a T> {
116 match self.elements.get(self.position) {
117 Some(Some(res)) => {
118 self.position = self.position.checked_add(1)?;
119 Some(res)
120 }
121 _ => None,
122 }
123 }
124
125 fn size_hint(&self) -> (usize, Option<usize>) {
126 let len = self.elements.len().saturating_sub(self.position);

Callers 7

encode_hexMethod · 0.45
fmtMethod · 0.45
getMethod · 0.45
decode_rdnFunction · 0.45
newMethod · 0.45
newMethod · 0.45
newMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 1

decode_rdnFunction · 0.36