pub struct CalldataWrapper { /* private fields */ }Expand description
RAII wrapper for libobs calldata_t ensuring stable address and proper free.
Implementations§
Source§impl CalldataWrapper
impl CalldataWrapper
Sourcepub unsafe fn as_mut_ptr(&mut self) -> Sendable<*mut calldata_t>
pub unsafe fn as_mut_ptr(&mut self) -> Sendable<*mut calldata_t>
Returns a mutable pointer to the inner calldata_t.
§Safety
This function is unsafe. You must guarantee that you will never move
the data out of the mutable reference you receive when you call this
function, so that the invariants on the Pin type can be upheld.
Auto Trait Implementations§
impl Freeze for CalldataWrapper
impl RefUnwindSafe for CalldataWrapper
impl Send for CalldataWrapper
impl Sync for CalldataWrapper
impl Unpin for CalldataWrapper
impl UnwindSafe for CalldataWrapper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more