MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PyFloat

Class PyFloat

src/objects/num.rs:64–64  ·  view source on GitHub ↗

Represents a Python `float` object. You can usually avoid directly working with this type by using [ToPyObject](trait.ToPyObject.html) and [extract](struct.PyObject.html#method.extract) with `f32`/`f64`.

Source from the content-addressed store, hash-verified

62/// and [extract](struct.PyObject.html#method.extract)
63/// with `f32`/`f64`.
64pub struct PyFloat(PyObject);
65pyobject_newtype!(PyFloat, PyFloat_Check, PyFloat_Type);
66
67#[cfg(feature = "python27-sys")]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected