Struct me3_framework::hooks::Hooks
source · [−]pub struct Hooks { /* private fields */ }
Implementations
sourceimpl Hooks
impl Hooks
pub fn install<T, D>(&self, function: &T, detour: D) -> Result<(), FrameworkError>where
T: FunctionRef,
T::Target: Function,
D: 'static + Fn<<<T as FunctionRef>::Target as Function>::Arguments, Output = <<T as FunctionRef>::Target as Function>::Output>,
Trait Implementations
sourceimpl FrameworkGlobal for Hooks
impl FrameworkGlobal for Hooks
fn cell() -> &'static OnceCell<Self>
fn create() -> Result<Self, FrameworkError>
fn get_or_create() -> Result<&'static Self, FrameworkError>
sourceunsafe fn get_unchecked() -> &'static Self
unsafe fn get_unchecked() -> &'static Self
Safety Read more
Auto Trait Implementations
impl RefUnwindSafe for Hooks
impl Send for Hooks
impl Sync for Hooks
impl Unpin for Hooks
impl UnwindSafe for Hooks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more