pub struct Reading(/* private fields */);Expand description
A number a body may not have: absent exactly where its payload is NaN, which is the
representation and not a sentinel a reader has to know about
(r[impl outs.absence.typed]). Eight bytes where Option<f64> is sixteen — every bit pattern
of an f64 is a valid one, so the discriminant can never be packed into the payload and a
retained series of them was paying twice for what the payload already said.
The payload stays behind get deliberately. A Blind body computes in plain
Rust, outside every assert the algebra carries, and being made to unwrap is the whole of what
stands between it and summing a run of absences into a NaN.
Implementations§
Trait Implementations§
impl Copy for Reading
Source§impl Flat for Reading
impl Flat for Reading
Source§const ABSENTABLE: bool = true
const ABSENTABLE: bool = true
r[impl outs.absence.typed]). A body that may decline owes one, which is what the kernels
check its Expr::MAYBE against.const DIMS: &'static [usize]
Source§fn flat(&self, out: &mut [f64]) -> bool
fn flat(&self, out: &mut [f64]) -> bool
LEN slots of out; returns fired. !fired ⇒ NaN-filled.Source§fn fires(&self) -> usize
fn fires(&self) -> usize
Option 0/1, &[T] its len.const LEN: usize
Source§impl PartialEq for Reading
Hand-written, and this is the reason the type exists rather than a convention on a bare f64:
NaN != NaN, so a derived impl would make absent differ from absent and every assert_eq! over
a run of outs would go quietly wrong.
impl PartialEq for Reading
Hand-written, and this is the reason the type exists rather than a convention on a bare f64:
NaN != NaN, so a derived impl would make absent differ from absent and every assert_eq! over
a run of outs would go quietly wrong.