Enum maturin::BridgeModel
source · [−]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, 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 more
sourceimpl Debug for BridgeModel
impl Debug for BridgeModel
sourceimpl PartialEq<BridgeModel> for BridgeModel
impl PartialEq<BridgeModel> for BridgeModel
sourcefn eq(&self, other: &BridgeModel) -> bool
fn eq(&self, other: &BridgeModel) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BridgeModel) -> bool
fn ne(&self, other: &BridgeModel) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
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.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more