MCPcopy Create free account
hub / github.com/RustPython/RustPython / as_slice

Method as_slice

crates/wtf8/src/lib.rs:378–380  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

376
377 #[inline]
378 pub fn as_slice(&self) -> &Wtf8 {
379 unsafe { Wtf8::from_bytes_unchecked(&self.bytes) }
380 }
381
382 #[inline]
383 pub fn as_mut_slice(&mut self) -> &mut Wtf8 {

Callers 5

compileMethod · 0.45
derefMethod · 0.45
as_wtf8Method · 0.45
impl_pymoduleFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected