pub struct InvalidThreshold(pub f32);Expand description
Error returned when a caller supplies a runtime confidence threshold
override that is outside the valid [0.0, 1.0] range.
Tuple Fields§
§0: f32Trait Implementations§
Source§impl Clone for InvalidThreshold
impl Clone for InvalidThreshold
Source§fn clone(&self) -> InvalidThreshold
fn clone(&self) -> InvalidThreshold
Returns a duplicate of the value. Read more
1.0.0 · 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 InvalidThreshold
impl Debug for InvalidThreshold
Source§impl Display for InvalidThreshold
impl Display for InvalidThreshold
Source§impl Error for InvalidThreshold
impl Error for InvalidThreshold
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<InvalidThreshold> for EngineError
impl From<InvalidThreshold> for EngineError
Source§fn from(value: InvalidThreshold) -> Self
fn from(value: InvalidThreshold) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvalidThreshold
impl PartialEq for InvalidThreshold
impl Copy for InvalidThreshold
impl StructuralPartialEq for InvalidThreshold
Auto Trait Implementations§
impl Freeze for InvalidThreshold
impl RefUnwindSafe for InvalidThreshold
impl Send for InvalidThreshold
impl Sync for InvalidThreshold
impl Unpin for InvalidThreshold
impl UnsafeUnpin for InvalidThreshold
impl UnwindSafe for InvalidThreshold
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