Trait extern_c::helpers::FnExt

source ·
pub trait FnExt<Args>: 'static + Sync + ZeroSizedElseWrathOfTheGඞds {
    type CSignature;

    // Required method
    fn extern_c(this: Self) -> Self::CSignature;
}

Required Associated Types§

Required Methods§

source

fn extern_c(this: Self) -> Self::CSignature

Implementors§

source§

impl<F, R> FnExt<()> for Fwhere F: Fn() -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn() -> R

source§

impl<F, _0, R> FnExt<(_0,)> for Fwhere F: Fn(_0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _0) -> R

source§

impl<F, _1, _0, R> FnExt<(_1, _0)> for Fwhere F: Fn(_1, _0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _1, _: _0) -> R

source§

impl<F, _2, _1, _0, R> FnExt<(_2, _1, _0)> for Fwhere F: Fn(_2, _1, _0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _2, _: _1, _: _0) -> R

source§

impl<F, _3, _2, _1, _0, R> FnExt<(_3, _2, _1, _0)> for Fwhere F: Fn(_3, _2, _1, _0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _3, _: _2, _: _1, _: _0) -> R

source§

impl<F, _4, _3, _2, _1, _0, R> FnExt<(_4, _3, _2, _1, _0)> for Fwhere F: Fn(_4, _3, _2, _1, _0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _4, _: _3, _: _2, _: _1, _: _0) -> R

source§

impl<F, _5, _4, _3, _2, _1, _0, R> FnExt<(_5, _4, _3, _2, _1, _0)> for Fwhere F: Fn(_5, _4, _3, _2, _1, _0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _5, _: _4, _: _3, _: _2, _: _1, _: _0) -> R

source§

impl<F, _6, _5, _4, _3, _2, _1, _0, R> FnExt<(_6, _5, _4, _3, _2, _1, _0)> for Fwhere F: Fn(_6, _5, _4, _3, _2, _1, _0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _6, _: _5, _: _4, _: _3, _: _2, _: _1, _: _0) -> R

source§

impl<F, _7, _6, _5, _4, _3, _2, _1, _0, R> FnExt<(_7, _6, _5, _4, _3, _2, _1, _0)> for Fwhere F: Fn(_7, _6, _5, _4, _3, _2, _1, _0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _7, _: _6, _: _5, _: _4, _: _3, _: _2, _: _1, _: _0) -> R

source§

impl<F, _8, _7, _6, _5, _4, _3, _2, _1, _0, R> FnExt<(_8, _7, _6, _5, _4, _3, _2, _1, _0)> for Fwhere F: Fn(_8, _7, _6, _5, _4, _3, _2, _1, _0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _8, _: _7, _: _6, _: _5, _: _4, _: _3, _: _2, _: _1, _: _0) -> R

source§

impl<F, _9, _8, _7, _6, _5, _4, _3, _2, _1, _0, R> FnExt<(_9, _8, _7, _6, _5, _4, _3, _2, _1, _0)> for Fwhere F: Fn(_9, _8, _7, _6, _5, _4, _3, _2, _1, _0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _9, _: _8, _: _7, _: _6, _: _5, _: _4, _: _3, _: _2, _: _1, _: _0) -> R

source§

impl<F, _10, _9, _8, _7, _6, _5, _4, _3, _2, _1, _0, R> FnExt<(_10, _9, _8, _7, _6, _5, _4, _3, _2, _1, _0)> for Fwhere F: Fn(_10, _9, _8, _7, _6, _5, _4, _3, _2, _1, _0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _10, _: _9, _: _8, _: _7, _: _6, _: _5, _: _4, _: _3, _: _2, _: _1, _: _0) -> R

source§

impl<F, _11, _10, _9, _8, _7, _6, _5, _4, _3, _2, _1, _0, R> FnExt<(_11, _10, _9, _8, _7, _6, _5, _4, _3, _2, _1, _0)> for Fwhere F: Fn(_11, _10, _9, _8, _7, _6, _5, _4, _3, _2, _1, _0) -> R + 'static + Sync + ZeroSizedElseWrathOfTheGඞds,

§

type CSignature = extern "C" fn(_: _11, _: _10, _: _9, _: _8, _: _7, _: _6, _: _5, _: _4, _: _3, _: _2, _: _1, _: _0) -> R