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

Method as_slice

crates/common/src/boxvec.rs:315–317  ·  view source on GitHub ↗

Return a slice containing all elements of the vector.

(&self)

Source from the content-addressed store, hash-verified

313
314 /// Return a slice containing all elements of the vector.
315 pub fn as_slice(&self) -> &[T] {
316 self
317 }
318
319 /// Return a mutable slice containing all elements of the vector.
320 pub fn as_mut_slice(&mut self) -> &mut [T] {

Callers 2

as_refMethod · 0.45
deserialize_codeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected