Struct pyo3::PythonVersionInfo[][src]

pub struct PythonVersionInfo<'p> {
    pub major: u8,
    pub minor: u8,
    pub patch: u8,
    pub suffix: Option<&'p str>,
}

Represents the major, minor, and patch (if any) versions of this interpreter.

See Python::version.

Fields

major: u8minor: u8patch: u8suffix: Option<&'p str>

Trait Implementations

impl<'p> Debug for PythonVersionInfo<'p>[src]

impl PartialEq<(u8, u8, u8)> for PythonVersionInfo<'_>[src]

impl PartialEq<(u8, u8)> for PythonVersionInfo<'_>[src]

impl PartialOrd<(u8, u8, u8)> for PythonVersionInfo<'_>[src]

impl PartialOrd<(u8, u8)> for PythonVersionInfo<'_>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.