Struct fadroma::prelude::DivideByZeroError
source · pub struct DivideByZeroError {
pub operand: String,
}
Fields§
§operand: String
Implementations§
source§impl DivideByZeroError
impl DivideByZeroError
pub fn new(operand: impl ToString) -> DivideByZeroError
Trait Implementations§
source§impl Debug for DivideByZeroError
impl Debug for DivideByZeroError
source§impl Display for DivideByZeroError
impl Display for DivideByZeroError
source§impl Error for DivideByZeroError
impl Error for DivideByZeroError
1.30.0 · 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 From<DivideByZeroError> for StdError
impl From<DivideByZeroError> for StdError
source§fn from(source: DivideByZeroError) -> StdError
fn from(source: DivideByZeroError) -> StdError
Converts to this type from the input type.
source§impl PartialEq<DivideByZeroError> for DivideByZeroError
impl PartialEq<DivideByZeroError> for DivideByZeroError
source§fn eq(&self, other: &DivideByZeroError) -> bool
fn eq(&self, other: &DivideByZeroError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DivideByZeroError
impl StructuralEq for DivideByZeroError
impl StructuralPartialEq for DivideByZeroError
Auto Trait Implementations§
impl RefUnwindSafe for DivideByZeroError
impl Send for DivideByZeroError
impl Sync for DivideByZeroError
impl Unpin for DivideByZeroError
impl UnwindSafe for DivideByZeroError
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