Struct pyo3::PythonVersionInfo [−][src]
Represents the major, minor, and patch (if any) versions of this interpreter.
See Python::version.
Fields
major: u8
minor: u8
patch: u8
suffix: Option<&'p str>
Trait Implementations
impl<'p> Debug for PythonVersionInfo<'p>
[src]
impl PartialEq<(u8, u8, u8)> for PythonVersionInfo<'_>
[src]
fn eq(&self, other: &(u8, u8, u8)) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<(u8, u8)> for PythonVersionInfo<'_>
[src]
fn eq(&self, other: &(u8, u8)) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<(u8, u8, u8)> for PythonVersionInfo<'_>
[src]
fn partial_cmp(&self, other: &(u8, u8, u8)) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<(u8, u8)> for PythonVersionInfo<'_>
[src]
Auto Trait Implementations
impl<'p> RefUnwindSafe for PythonVersionInfo<'p>
[src]
impl<'p> Send for PythonVersionInfo<'p>
[src]
impl<'p> Sync for PythonVersionInfo<'p>
[src]
impl<'p> Unpin for PythonVersionInfo<'p>
[src]
impl<'p> UnwindSafe for PythonVersionInfo<'p>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,