Trait pyo3::prelude::PyFloatMethods

source ·
pub trait PyFloatMethods<'py>: Sealed {
    // Required method
    fn value(&self) -> c_double;
}
Expand description

Implementation of functionality for PyFloat.

These methods are defined for the Bound<'py, PyFloat> smart pointer, so to use method call syntax these methods are separated into a trait, because stable Rust does not yet support arbitrary_self_types.

Required Methods§

source

fn value(&self) -> c_double

Gets the value of this float.

Implementors§

source§

impl<'py> PyFloatMethods<'py> for Bound<'py, PyFloat>