Trait red4ext_rs::FnPtr

source ·
pub trait FnPtr<Args, Ret>: Sealed<Args, Ret> {
    // Required method
    fn to_ptr(&self) -> VoidPtr;
}
Expand description

A trait for functions that are convertible to pointers. Only non-closure functions can satisfy this requirement.

Required Methods§

source

fn to_ptr(&self) -> VoidPtr

Implementations on Foreign Types§

source§

impl<A, B, C, D, E, F, G, H, Ret> FnPtr<(A, B, C, D, E, F, G, H), Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H) -> Ret

source§

fn to_ptr(&self) -> VoidPtr

source§

impl<A, B, C, D, E, F, G, Ret> FnPtr<(A, B, C, D, E, F, G), Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G) -> Ret

source§

fn to_ptr(&self) -> VoidPtr

source§

impl<A, B, C, D, E, F, Ret> FnPtr<(A, B, C, D, E, F), Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F) -> Ret

source§

fn to_ptr(&self) -> VoidPtr

source§

impl<A, B, C, D, E, Ret> FnPtr<(A, B, C, D, E), Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E) -> Ret

source§

fn to_ptr(&self) -> VoidPtr

source§

impl<A, B, C, D, Ret> FnPtr<(A, B, C, D), Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D) -> Ret

source§

fn to_ptr(&self) -> VoidPtr

source§

impl<A, B, C, Ret> FnPtr<(A, B, C), Ret> for unsafe extern "C" fn(_: A, _: B, _: C) -> Ret

source§

fn to_ptr(&self) -> VoidPtr

source§

impl<A, B, Ret> FnPtr<(A, B), Ret> for unsafe extern "C" fn(_: A, _: B) -> Ret

source§

fn to_ptr(&self) -> VoidPtr

source§

impl<A, Ret> FnPtr<(A,), Ret> for unsafe extern "C" fn(_: A) -> Ret

source§

fn to_ptr(&self) -> VoidPtr

source§

impl<Ret> FnPtr<(), Ret> for unsafe extern "C" fn() -> Ret

source§

fn to_ptr(&self) -> VoidPtr

Implementors§