pub enum ParseThresholdError {
NoChildren,
KNotTerminal,
ParseK(String),
Threshold(ThresholdError),
}
Expand description
Error parsing a threshold expression.
Variants§
NoChildren
Expression had no children, not even a threshold value.
KNotTerminal
The threshold value appeared to be a sub-expression rather than a number.
ParseK(String)
Failed to parse the threshold value.
Threshold(ThresholdError)
Threshold parameters were invalid.
Trait Implementations§
source§impl Clone for ParseThresholdError
impl Clone for ParseThresholdError
source§fn clone(&self) -> ParseThresholdError
fn clone(&self) -> ParseThresholdError
Returns a copy 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 ParseThresholdError
impl Debug for ParseThresholdError
source§impl Display for ParseThresholdError
impl Display for ParseThresholdError
source§impl Error for ParseThresholdError
impl Error for ParseThresholdError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<ParseThresholdError> for ParseThresholdError
impl PartialEq<ParseThresholdError> for ParseThresholdError
source§fn eq(&self, other: &ParseThresholdError) -> bool
fn eq(&self, other: &ParseThresholdError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseThresholdError
impl StructuralEq for ParseThresholdError
impl StructuralPartialEq for ParseThresholdError
Auto Trait Implementations§
impl RefUnwindSafe for ParseThresholdError
impl Send for ParseThresholdError
impl Sync for ParseThresholdError
impl Unpin for ParseThresholdError
impl UnwindSafe for ParseThresholdError
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