MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / as_mut_ref

Method as_mut_ref

euralios_std/src/syscalls.rs:128–130  ·  view source on GitHub ↗

Get a mutable reference with lifetime tied to MemoryHandle

(&mut self)

Source from the content-addressed store, hash-verified

126
127 /// Get a mutable reference with lifetime tied to MemoryHandle
128 pub unsafe fn as_mut_ref<T>(&mut self) -> &mut T {
129 &mut *(self.0 as *mut T)
130 }
131
132 pub unsafe fn as_mut_ptr<T>(&mut self) -> *mut T {
133 self.0 as *mut T

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected