MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / last

Method last

src/entity/primary_map.rs:163–167  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

161 #[inline]
162 #[must_use]
163 pub fn last(&self) -> Option<(K, &V)> {
164 let len = self.elems.len();
165 let last = self.elems.last()?;
166 Some((K::new(len - 1), last))
167 }
168
169 /// Returns the last element that was inserted in the map.
170 #[inline]

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected