Type Alias Py3Only

Source
pub type Py3Only<T> = Result<T, Error>;
Expand description

The result type denotes that this function is only available when interfacing a Python 3 interpreter.

It’s the same as the normal PyResult used throughout this module, but it’s just a little type hint.

Aliased Type§

enum Py3Only<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value