Enum python_launcher::RequestedVersion[][src]

pub enum RequestedVersion {
    Any,
    MajorOnly(u16),
    Exact(u16u16),
}

The version of Python being searched for.

Variants

Any

Any version is acceptable.

MajorOnly(u16)

A specific major version (e.g. 3.x).

Exact(u16u16)

The specific major.minor version (e.g. 3.9).

Implementations

impl RequestedVersion[src]

pub fn env_var(self) -> Option<String>[src]

Returns the string representing the environment variable for the requested version.

Trait Implementations

impl Clone for RequestedVersion[src]

impl Copy for RequestedVersion[src]

impl Debug for RequestedVersion[src]

impl From<ExactVersion> for RequestedVersion[src]

impl FromStr for RequestedVersion[src]

type Err = Error

The associated error which can be returned from parsing.

impl PartialEq<RequestedVersion> for RequestedVersion[src]

impl StructuralPartialEq for RequestedVersion[src]

impl ToString for RequestedVersion[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.