Skip to main content

Module exact

Module exact 

Source
Expand description

Exact: values written as the kernel holds them — every enclosure’s two bounds, to the bit — and read back the same, for what is kept to be read again: a cache of what a file was made into (geop_core_program::cache).

The plain serde of a Scalar or a Vector is its midpoint (crate::scalars::as_f64), which is what a viewer draws. Read back, a midpoint is another value: a part built from it is not the part that was kept. Whatever is written to be read again as itself is written with Exact, a field of it #[serde(with = "geop_core_math::exact")].

Structs§

Read
A value read as written, as an element of something else.
Written
value, to be serialized exactly as an element of something else.

Traits§

Exact
A value written exactly (Exact::write) and read back as written (Exact::read).

Functions§

deserialize
#[serde(with = "geop_core_math::exact")]: the field read as written.
serialize
#[serde(with = "geop_core_math::exact")]: the field written exactly.