pub enum ConfidenceError {
OutOfRange(f32),
NotANumber,
}Expand description
Errors returned by Confidence::try_from_f32.
Variants§
OutOfRange(f32)
The input float was outside the permitted range [0.0, 1.0].
NotANumber
The input float was NaN.
Trait Implementations§
Source§impl Debug for ConfidenceError
impl Debug for ConfidenceError
Source§impl Display for ConfidenceError
impl Display for ConfidenceError
Source§impl Error for ConfidenceError
impl Error for ConfidenceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ConfidenceError> for BindError
impl From<ConfidenceError> for BindError
Source§fn from(source: ConfidenceError) -> Self
fn from(source: ConfidenceError) -> Self
Converts to this type from the input type.
Source§impl From<ConfidenceError> for SemanticError
impl From<ConfidenceError> for SemanticError
Source§fn from(source: ConfidenceError) -> Self
fn from(source: ConfidenceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConfidenceError
impl PartialEq for ConfidenceError
impl StructuralPartialEq for ConfidenceError
Auto Trait Implementations§
impl Freeze for ConfidenceError
impl RefUnwindSafe for ConfidenceError
impl Send for ConfidenceError
impl Sync for ConfidenceError
impl Unpin for ConfidenceError
impl UnsafeUnpin for ConfidenceError
impl UnwindSafe for ConfidenceError
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