Enum maturin::BridgeModel
source · pub enum BridgeModel {
Cffi,
Bin(Option<(String, usize)>),
Bindings(String, usize),
BindingsAbi3(u8, u8),
}
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(String, usize)
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(u8, u8)
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
sourceimpl BridgeModel
impl BridgeModel
sourcepub fn unwrap_bindings(&self) -> &str
pub fn unwrap_bindings(&self) -> &str
Returns the name of the bindings crate
sourcepub fn is_bindings(&self, name: &str) -> bool
pub fn is_bindings(&self, name: &str) -> bool
Test whether this is using a specific bindings crate
Trait Implementations
sourceimpl Clone for BridgeModel
impl Clone for BridgeModel
sourcefn clone(&self) -> BridgeModel
fn clone(&self) -> BridgeModel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BridgeModel
impl Debug for BridgeModel
sourceimpl Display for BridgeModel
impl Display for BridgeModel
sourceimpl PartialEq<BridgeModel> for BridgeModel
impl PartialEq<BridgeModel> for BridgeModel
sourcefn eq(&self, other: &BridgeModel) -> bool
fn eq(&self, other: &BridgeModel) -> bool
impl Eq for BridgeModel
impl StructuralEq for BridgeModel
impl StructuralPartialEq for BridgeModel
Auto Trait Implementations
impl RefUnwindSafe for BridgeModel
impl Send for BridgeModel
impl Sync for BridgeModel
impl Unpin for BridgeModel
impl UnwindSafe for BridgeModel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Container<T> for Twhere
T: Clone,
impl<T> Container<T> for Twhere
T: Clone,
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.