pub enum RealSignCertificate {
StructuralFacts,
ExactZeroScale,
BoundedRefinement {
min_precision: i32,
},
}Expand description
Source of a certified RealSign decision.
The variants describe how a sign was proved, not how expensive the proof was in wall-clock time. Keeping this source visible is important for exact geometric computation: downstream predicate crates can distinguish cheap object facts from bounded refinement without treating lossy primitive-float approximations as topology. See Yap, “Towards Exact Geometric Computation,” Computational Geometry 7.1-2 (1997), and Boehm et al., “Exact Real Arithmetic: A Case Study in Higher Order Programming,” Proceedings of the 1998 ACM SIGPLAN International Conference on Functional Programming.
Variants§
StructuralFacts
The sign followed from cheap structural facts already carried by Real.
ExactZeroScale
The rational scale of the value is exactly zero.
BoundedRefinement
A bounded exact-real refinement proved the sign.
The min_precision value is the caller’s refinement floor. It is not a
primitive-float tolerance; it is the explicit precision bound for the
exact-real approximation/refinement machinery.
Trait Implementations§
Source§impl Clone for RealSignCertificate
impl Clone for RealSignCertificate
Source§fn clone(&self) -> RealSignCertificate
fn clone(&self) -> RealSignCertificate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RealSignCertificate
Source§impl Debug for RealSignCertificate
impl Debug for RealSignCertificate
impl Eq for RealSignCertificate
Source§impl PartialEq for RealSignCertificate
impl PartialEq for RealSignCertificate
Source§fn eq(&self, other: &RealSignCertificate) -> bool
fn eq(&self, other: &RealSignCertificate) -> bool
self and other values to be equal, and is used by ==.