MCPcopy Index your code
hub / github.com/RustPython/RustPython / as_mut_slice

Method as_mut_slice

crates/common/src/boxvec.rs:320–322  ·  view source on GitHub ↗

Return a mutable slice containing all elements of the vector.

(&mut self)

Source from the content-addressed store, hash-verified

318
319 /// Return a mutable slice containing all elements of the vector.
320 pub fn as_mut_slice(&mut self) -> &mut [T] {
321 self
322 }
323
324 /// Return a raw pointer to the vector's buffer.
325 #[inline]

Callers 1

as_mutMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected