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

Method as_ref

crates/codegen/src/symboltable.rs:463–465  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

461 }
462
463 pub fn as_ref(&self) -> &[&T] {
464 unsafe { &*(self.v.as_slice() as *const [NonNull<T>] as *const [&T]) }
465 }
466
467 pub fn as_mut(&mut self) -> &mut [&mut T] {
468 unsafe { &mut *(self.v.as_mut_slice() as *mut [NonNull<T>] as *mut [&mut T]) }

Callers 15

scan_programMethod · 0.45
scan_exprMethod · 0.45
iterMethod · 0.45
analyze_symbol_tableMethod · 0.45
analyze_symbolMethod · 0.45
scan_statementMethod · 0.45
register_nameMethod · 0.45
unparse_exprMethod · 0.45
unparse_fstring_elemMethod · 0.45
unparse_fstringMethod · 0.45

Calls 1

as_sliceMethod · 0.45

Tested by

no test coverage detected