Struct Original
pub struct Original<'a, T> { /* private fields */ }Expand description
The original, unhooked function of a Hook, borrowed from
it.
Its call method takes the hooked function’s arguments and is unsafe when
the signature is. It can’t outlive the hook, so it never runs freed
trampoline memory.
The original function of a [TypedDetour], borrowed from it.
Returned by [TypedDetour::original] for function pointers. Its call
method takes the same arguments as the function, and is unsafe if the
function is.
Implementations§
Trait Implementations§
impl<'a, T> Copy for Original<'a, T>where
T: Copy,
Auto Trait Implementations§
impl<'a, T> Freeze for Original<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Original<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Original<'a, T>where
T: Send,
impl<'a, T> Sync for Original<'a, T>where
T: Sync,
impl<'a, T> Unpin for Original<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for Original<'a, T>where
T: UnsafeUnpin,
impl<'a, T> UnwindSafe for Original<'a, T>where
T: UnwindSafe,
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