Enum fraction::error::DivisionError
source · pub enum DivisionError {
DivisionByZero,
FmtError(Error),
IoError(Error),
ExternalError(Box<dyn Error + Send + Sync>),
}
Expand description
Could not perform division, or fill in the resulting buffer
Variants§
DivisionByZero
Trying to divide something by Zero
FmtError(Error)
Incapsulates fmt::Error
IoError(Error)
Incapsulates io::Error
ExternalError(Box<dyn Error + Send + Sync>)
Errors external to the division algorithm still may be passed through the co-routines wrapped up with this constructor
Trait Implementations§
source§impl Debug for DivisionError
impl Debug for DivisionError
source§impl Display for DivisionError
impl Display for DivisionError
source§impl Error for DivisionError
impl Error for DivisionError
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<Error> for DivisionError
impl From<Error> for DivisionError
source§fn from(error: Error) -> DivisionError
fn from(error: Error) -> DivisionError
Converts to this type from the input type.
source§impl From<Error> for DivisionError
impl From<Error> for DivisionError
source§fn from(error: Error) -> DivisionError
fn from(error: Error) -> DivisionError
Converts to this type from the input type.
impl Send for DivisionError
impl Sync for DivisionError
Auto Trait Implementations§
impl Freeze for DivisionError
impl !RefUnwindSafe for DivisionError
impl Unpin for DivisionError
impl !UnwindSafe for DivisionError
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