pub enum MethodProto {
    Free {
        name: &'static str,
        proto: &'static str,
    },
    Unary {
        name: &'static str,
        pyres: bool,
        proto: &'static str,
    },
    Binary {
        name: &'static str,
        arg: &'static str,
        pyres: bool,
        proto: &'static str,
    },
    BinaryS {
        name: &'static str,
        arg1: &'static str,
        arg2: &'static str,
        pyres: bool,
        proto: &'static str,
    },
    Ternary {
        name: &'static str,
        arg1: &'static str,
        arg2: &'static str,
        pyres: bool,
        proto: &'static str,
    },
    TernaryS {
        name: &'static str,
        arg1: &'static str,
        arg2: &'static str,
        arg3: &'static str,
        pyres: bool,
        proto: &'static str,
    },
    Quaternary {
        name: &'static str,
        arg1: &'static str,
        arg2: &'static str,
        arg3: &'static str,
        proto: &'static str,
    },
}

Variants

Free

Fields

name: &'static str
proto: &'static str

Unary

Fields

name: &'static str
pyres: bool
proto: &'static str

Binary

Fields

name: &'static str
arg: &'static str
pyres: bool
proto: &'static str

BinaryS

Fields

name: &'static str
arg1: &'static str
arg2: &'static str
pyres: bool
proto: &'static str

Ternary

Fields

name: &'static str
arg1: &'static str
arg2: &'static str
pyres: bool
proto: &'static str

TernaryS

Fields

name: &'static str
arg1: &'static str
arg2: &'static str
arg3: &'static str
pyres: bool
proto: &'static str

Quaternary

Fields

name: &'static str
arg1: &'static str
arg2: &'static str
arg3: &'static str
proto: &'static str

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

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.