⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here
pub struct FnSpec<'a> {
    pub tp: FnType,
    pub name: &'a Ident,
    pub python_name: Ident,
    pub attrs: Vec<Argument>,
    pub args: Vec<FnArg<'a>>,
    pub output: Type,
    pub doc: PythonDoc,
    pub deprecations: Deprecations,
    pub convention: CallingConvention,
    pub text_signature: Option<TextSignatureAttribute>,
    pub krate: Path,
    pub unsafety: Option<Unsafe>,
}

Fields

tp: FnTypename: &'a Identpython_name: Identattrs: Vec<Argument>args: Vec<FnArg<'a>>output: Typedoc: PythonDocdeprecations: Deprecationsconvention: CallingConventiontext_signature: Option<TextSignatureAttribute>krate: Pathunsafety: Option<Unsafe>

Implementations

Parser function signature and function attributes

Return a C wrapper function for this signature.

Return a PyMethodDef constructor for this function, matching the selected calling convention.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.