IntoFunctionDefinition

Trait IntoFunctionDefinition 

Source
pub trait IntoFunctionDefinition {
    // Required method
    fn into<S: Into<String>>(self, name: S) -> FunctionDefinition;
}
Expand description

A value-to-FunctionDefinition conversion that consumes the input value.

Required Methods§

Source

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Performs the conversion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<R: HasStaticType> IntoFunctionDefinition for extern "C" fn() -> R

Source§

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Source§

impl<R: HasStaticType, A: HasStaticType> IntoFunctionDefinition for extern "C" fn(A) -> R

Source§

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Source§

impl<R: HasStaticType, A: HasStaticType, B: HasStaticType> IntoFunctionDefinition for extern "C" fn(A, B) -> R

Source§

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Source§

impl<R: HasStaticType, A: HasStaticType, B: HasStaticType, C: HasStaticType> IntoFunctionDefinition for extern "C" fn(A, B, C) -> R

Source§

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Source§

impl<R: HasStaticType, A: HasStaticType, B: HasStaticType, C: HasStaticType, D: HasStaticType> IntoFunctionDefinition for extern "C" fn(A, B, C, D) -> R

Source§

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Source§

impl<R: HasStaticType, A: HasStaticType, B: HasStaticType, C: HasStaticType, D: HasStaticType, E: HasStaticType> IntoFunctionDefinition for extern "C" fn(A, B, C, D, E) -> R

Source§

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Source§

impl<R: HasStaticType, A: HasStaticType, B: HasStaticType, C: HasStaticType, D: HasStaticType, E: HasStaticType, F: HasStaticType> IntoFunctionDefinition for extern "C" fn(A, B, C, D, E, F) -> R

Source§

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Source§

impl<R: HasStaticType, A: HasStaticType, B: HasStaticType, C: HasStaticType, D: HasStaticType, E: HasStaticType, F: HasStaticType, G: HasStaticType> IntoFunctionDefinition for extern "C" fn(A, B, C, D, E, F, G) -> R

Source§

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Source§

impl<R: HasStaticType, A: HasStaticType, B: HasStaticType, C: HasStaticType, D: HasStaticType, E: HasStaticType, F: HasStaticType, G: HasStaticType, H: HasStaticType> IntoFunctionDefinition for extern "C" fn(A, B, C, D, E, F, G, H) -> R

Source§

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Source§

impl<R: HasStaticType, A: HasStaticType, B: HasStaticType, C: HasStaticType, D: HasStaticType, E: HasStaticType, F: HasStaticType, G: HasStaticType, H: HasStaticType, I: HasStaticType> IntoFunctionDefinition for extern "C" fn(A, B, C, D, E, F, G, H, I) -> R

Source§

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Source§

impl<R: HasStaticType, A: HasStaticType, B: HasStaticType, C: HasStaticType, D: HasStaticType, E: HasStaticType, F: HasStaticType, G: HasStaticType, H: HasStaticType, I: HasStaticType, J: HasStaticType> IntoFunctionDefinition for extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> R

Source§

fn into<S: Into<String>>(self, name: S) -> FunctionDefinition

Implementors§