pub struct PrecisionRegistry { /* private fields */ }
Expand description
Global precision tracking registry
Implementations§
Source§impl PrecisionRegistry
impl PrecisionRegistry
Sourcepub fn register_computation(
&self,
name: &str,
context: PrecisionContext,
) -> CoreResult<()>
pub fn register_computation( &self, name: &str, context: PrecisionContext, ) -> CoreResult<()>
Register a computation for precision tracking
Sourcepub fn update_computation_precision(
&self,
name: &str,
precision: f64,
operation: &str,
) -> CoreResult<()>
pub fn update_computation_precision( &self, name: &str, precision: f64, operation: &str, ) -> CoreResult<()>
Update precision for a computation
Sourcepub fn get_computation_context(
&self,
name: &str,
) -> CoreResult<Option<PrecisionContext>>
pub fn get_computation_context( &self, name: &str, ) -> CoreResult<Option<PrecisionContext>>
Get precision context for a computation
Sourcepub fn add_warning(&self, warning: PrecisionWarning) -> CoreResult<()>
pub fn add_warning(&self, warning: PrecisionWarning) -> CoreResult<()>
Add a precision warning
Sourcepub fn get_warnings(&self) -> CoreResult<Vec<PrecisionWarning>>
pub fn get_warnings(&self) -> CoreResult<Vec<PrecisionWarning>>
Get all warnings
Sourcepub fn clear_warnings(&self) -> CoreResult<()>
pub fn clear_warnings(&self) -> CoreResult<()>
Clear all warnings
Sourcepub fn generate_report(&self) -> CoreResult<String>
pub fn generate_report(&self) -> CoreResult<String>
Generate precision report
Trait Implementations§
Source§impl Debug for PrecisionRegistry
impl Debug for PrecisionRegistry
Auto Trait Implementations§
impl !Freeze for PrecisionRegistry
impl RefUnwindSafe for PrecisionRegistry
impl Send for PrecisionRegistry
impl Sync for PrecisionRegistry
impl Unpin for PrecisionRegistry
impl UnwindSafe for PrecisionRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more