Type Alias janetrs::function::JanetCFunction

source ·
pub type JanetCFunction = JanetCFunction;
Expand description

C function pointer that is accepted by Janet as a type.

Aliased Type§

enum JanetCFunction {
    None,
    Some(unsafe extern "C-unwind" fn(_: i32, _: *mut Janet) -> Janet),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C-unwind" fn(_: i32, _: *mut Janet) -> Janet)

Some value of type T.

Trait Implementations§

source§

impl JanetTypeName for JanetCFunction

source§

fn name() -> String

Returns a string with the name of the type
source§

impl TryFrom<Janet> for JanetCFunction

§

type Error = JanetConversionError

The type returned in the event of a conversion error.
source§

fn try_from(value: Janet) -> Result<Self, Self::Error>

Performs the conversion.