pub enum SerpError {
NoImpressions,
ClicksExceedImpressions {
clicks: u64,
impressions: u64,
},
InvalidPosition,
EmptyInput,
PositionNotInCurve(u32),
}Expand description
Errors returned when an input cannot support the requested arithmetic.
Variants§
NoImpressions
A rate was requested from zero impressions; the ratio is undefined.
ClicksExceedImpressions
Clicks exceeded impressions, which no search-console export can legitimately report.
Fields
InvalidPosition
A position value was not a finite number >= 1.0.
EmptyInput
The input slice was empty, so there is nothing to aggregate.
PositionNotInCurve(u32)
The curve holds no observation covering the requested position.
Trait Implementations§
impl Eq for SerpError
Source§impl Error for SerpError
impl Error for SerpError
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()
impl StructuralPartialEq for SerpError
Auto Trait Implementations§
impl Freeze for SerpError
impl RefUnwindSafe for SerpError
impl Send for SerpError
impl Sync for SerpError
impl Unpin for SerpError
impl UnsafeUnpin for SerpError
impl UnwindSafe for SerpError
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