Enum maturin::BridgeModel

source ·
pub enum BridgeModel {
    Cffi,
    Bin(Option<(String, usize)>),
    Bindings(Stringusize),
    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(Option<(String, usize)>)

A rust binary to be shipped a python package The String is the name of the bindings providing crate, e.g. pyo3, the number is the minimum minor python version

Bindings(Stringusize)

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

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

Implementations

Returns the name of the bindings crate

Test whether this is using a specific bindings crate

Test whether this is bin bindings

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
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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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
The number of items that this chain link consists of.
Append the elements in this link to the chain.
An iterator over the items within this container, by value.
Iterate over the elements of the container (using internal iteration because GATs are unstable).
Compare self to key and return true if they are equal.

Returns the argument unchanged.

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

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. 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