Enum maturin::BridgeModel[][src]

pub enum BridgeModel {
    Cffi,
    Bin,
    Bindings(String),
    BindingsAbi3(u8u8),
}
Expand description

The way the rust code is used in the wheel

Variants

Cffi

A native module with c bindings, i.e. #[no_mangle] extern "C" <some item>

Bin

A rust binary to be shipped a python package

Bindings(String)

A native module with pyo3 or rust-cpython bindings. The String is the name of the bindings providing crate, e.g. pyo3.

Tuple Fields of Bindings

0: String
BindingsAbi3(u8u8)

Bindings, but specifically for pyo3 with feature flags that allow building a single wheel for all cpython versions (pypy still needs multiple versions). The numbers are the minimum major and minor version

Tuple Fields of BindingsAbi3

0: u81: u8

Implementations

Returns the name of the bindings crate

Test whether this is using a specific bindings crate

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more