pub struct ErrorEstimate {
pub kind: String,
pub bound: Value,
pub method: String,
pub notes: Option<String>,
}Expand description
A validated numerical error estimate, only present when the method can actually provide one.
Fields§
§kind: String§bound: Value§method: String§notes: Option<String>Implementations§
Source§impl ErrorEstimate
impl ErrorEstimate
pub fn new( kind: impl Into<String>, bound: Value, method: impl Into<String>, ) -> ErrorEstimate
pub fn with_notes(self, notes: impl Into<String>) -> ErrorEstimate
Trait Implementations§
Source§impl Clone for ErrorEstimate
impl Clone for ErrorEstimate
Source§fn clone(&self) -> ErrorEstimate
fn clone(&self) -> ErrorEstimate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorEstimate
impl Debug for ErrorEstimate
Source§impl<'de> Deserialize<'de> for ErrorEstimate
impl<'de> Deserialize<'de> for ErrorEstimate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ErrorEstimate
impl PartialEq for ErrorEstimate
Source§impl Serialize for ErrorEstimate
impl Serialize for ErrorEstimate
impl StructuralPartialEq for ErrorEstimate
Auto Trait Implementations§
impl Freeze for ErrorEstimate
impl RefUnwindSafe for ErrorEstimate
impl Send for ErrorEstimate
impl Sync for ErrorEstimate
impl Unpin for ErrorEstimate
impl UnsafeUnpin for ErrorEstimate
impl UnwindSafe for ErrorEstimate
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