pub enum BrunchError {
DupeName,
NoBench,
NoRun,
Overflow,
TooFast,
TooSmall(u32),
TooWild,
}Expand description
§Error.
This enum serves as the custom error type for Brunch.
Variants§
DupeName
§Duplicate name.
NoBench
§No benches were specified.
NoRun
§A bench was missing a Bench::run-type call.
Overflow
§General math failure. (Floats aren’t fun.)
TooFast
§The benchmark completed too quickly to analyze.
TooSmall(u32)
§Not enough samples were collected to analyze.
TooWild
§The samples were too chaotic to analyze.
Trait Implementations§
Source§impl Clone for BrunchError
impl Clone for BrunchError
Source§fn clone(&self) -> BrunchError
fn clone(&self) -> BrunchError
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 BrunchError
impl Debug for BrunchError
Source§impl Display for BrunchError
impl Display for BrunchError
Source§impl Error for BrunchError
impl Error for BrunchError
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 Copy for BrunchError
Auto Trait Implementations§
impl Freeze for BrunchError
impl RefUnwindSafe for BrunchError
impl Send for BrunchError
impl Sync for BrunchError
impl Unpin for BrunchError
impl UnwindSafe for BrunchError
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