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

Method get

der/src/arrayvec.rs:42–47  ·  view source on GitHub ↗

Get an element from this [`ArrayVec`].

(&self, index: usize)

Source from the content-addressed store, hash-verified

40
41 /// Get an element from this [`ArrayVec`].
42 pub fn get(&self, index: usize) -> Option<&T> {
43 match self.elements.get(index) {
44 Some(Some(ref item)) => Some(item),
45 _ => None,
46 }
47 }
48
49 /// Iterate over the elements in this [`ArrayVec`].
50 pub fn iter(&self) -> Iter<'_, T> {

Callers 13

newMethod · 0.45
resolveMethod · 0.45
try_nextMethod · 0.45
parseMethod · 0.45
validate_last_blockFunction · 0.45
slice_tailMethod · 0.45
nextMethod · 0.45
lastMethod · 0.45
nextMethod · 0.45
ordering_regressionFunction · 0.45
try_nextMethod · 0.45
from_positive_bytesMethod · 0.45

Calls

no outgoing calls

Tested by 1

ordering_regressionFunction · 0.36