Struct minhook::function::FnPointer [] [src]

pub struct FnPointer(_);

An untyped function pointer.

Methods

impl FnPointer
[src]

unsafe fn from_raw(ptr: *mut c_void) -> FnPointer

Creates a function pointer from a raw pointer.

Safety

This function is unsafe because it can not check if the argument points to valid executable memory.

fn to_raw(&self) -> *mut c_void

Returns function pointer as a raw pointer.

Trait Implementations

impl Eq for FnPointer
[src]

impl PartialEq for FnPointer
[src]

fn eq(&self, __arg_0: &FnPointer) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &FnPointer) -> bool

This method tests for !=.

impl Copy for FnPointer
[src]

impl Clone for FnPointer
[src]

fn clone(&self) -> FnPointer

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for FnPointer
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Pointer for FnPointer
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.