MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / as_mut_ptr

Method as_mut_ptr

crates/core/src/alloc/vec.rs:334–336  ·  view source on GitHub ↗

Same as [`std::vec::Vec::as_mut_ptr`]. Note that this is technically inherited through the `DerefMut` impl but that converts `&mut Self` to `&mut [T]` which invalidates all previously derived pointers. This causes problems in Miri so by having an inherent method here it means that the borrow scope matches what we want with Miri.

(&mut self)

Source from the content-addressed store, hash-verified

332 // method here it means that the borrow scope matches what we want with
333 // Miri.
334 pub fn as_mut_ptr(&mut self) -> *mut T {
335 self.inner.as_mut_ptr()
336 }
337}
338
339impl<T> Deref for TryVec<T> {

Callers 15

baseMethod · 0.45
simple_push_popFunction · 0.45
memory_zeroedFunction · 0.45
consume_some_stackFunction · 0.45
assert_faultsFunction · 0.45
mainFunction · 0.45
into_raw_partsMethod · 0.45
into_raw_partsMethod · 0.45
newMethod · 0.45
c_callback_to_rust_fnFunction · 0.45

Calls

no outgoing calls

Tested by 15

simple_push_popFunction · 0.36
memory_zeroedFunction · 0.36
test_path_open_lotsFunction · 0.36
test_big_random_bufFunction · 0.36
test_readlinkFunction · 0.36
test_fd_dir_opsFunction · 0.36
test_file_pread_pwriteFunction · 0.36