#[non_exhaustive]pub struct PythonAbi {
implementation: PythonImplementation,
kind: PythonAbiKind,
version: PythonVersion,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.implementation: PythonImplementation§kind: PythonAbiKind§version: PythonVersionImplementations§
Source§impl PythonAbi
impl PythonAbi
pub fn from_build_env( implementation: PythonImplementation, version: PythonVersion, stable_abi_version: Option<PythonVersion>, gil_disabled: bool, ) -> Result<PythonAbi>
Sourcepub fn implementation(&self) -> PythonImplementation
pub fn implementation(&self) -> PythonImplementation
The Python implementation flavor.
Serialized to implementation.
Sourcepub fn kind(&self) -> PythonAbiKind
pub fn kind(&self) -> PythonAbiKind
The ABI flavor
Serialized to kind
Sourcepub fn version(&self) -> PythonVersion
pub fn version(&self) -> PythonVersion
Python X.Y version. e.g. 3.9.
Serialized to version.
Trait Implementations§
impl Copy for PythonAbi
Source§impl Eq for PythonAbi
impl Eq for PythonAbi
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
🔬This is a nightly-only experimental API. (
derive_eq_internals)1.0.0 (const: unstable) · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
👎Deprecated since 1.95.0:
implementation detail of #[derive(Eq)]
impl StructuralPartialEq for PythonAbi
impl TrivialClone for PythonAbi
Auto Trait Implementations§
impl Freeze for PythonAbi
impl RefUnwindSafe for PythonAbi
impl Send for PythonAbi
impl Sync for PythonAbi
impl Unpin for PythonAbi
impl UnsafeUnpin for PythonAbi
impl UnwindSafe for PythonAbi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
🔬This is a nightly-only experimental API. (
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read more