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

Method as_mut_slice

src/entity/compact_list.rs:67–69  ·  view source on GitHub ↗
(&self, pool: &'a mut CompactListPool<T>)

Source from the content-addressed store, hash-verified

65 /// Get the list as a mutable slice.
66 #[must_use]
67 pub fn as_mut_slice<'a>(&self, pool: &'a mut CompactListPool<T>) -> &'a mut [T] {
68 &mut pool.elems[self.start as usize..self.end as usize]
69 }
70
71 /// Extends the given list with the elements from an iterator, inserting
72 /// them at the given index of the original list, returning a new

Callers 2

emit_vregMethod · 0.80
swap_removeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected