pub enum ExpansionError {
DivisionByZero,
NegativeRoot(u32),
Coefficient(String),
}Expand description
Why a coefficient or an operation of an expansion is not given.
Variants§
DivisionByZero
The reciprocal of zero.
NegativeRoot(u32)
An even root of a negative value.
Coefficient(String)
A coefficient’s own refusal, in its own words.
Trait Implementations§
Source§impl Clone for ExpansionError
impl Clone for ExpansionError
Source§fn clone(&self) -> ExpansionError
fn clone(&self) -> ExpansionError
Returns a duplicate 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 ExpansionError
impl Debug for ExpansionError
Source§impl Display for ExpansionError
impl Display for ExpansionError
Source§impl PartialEq for ExpansionError
impl PartialEq for ExpansionError
impl Eq for ExpansionError
impl StructuralPartialEq for ExpansionError
Auto Trait Implementations§
impl Freeze for ExpansionError
impl RefUnwindSafe for ExpansionError
impl Send for ExpansionError
impl Sync for ExpansionError
impl Unpin for ExpansionError
impl UnsafeUnpin for ExpansionError
impl UnwindSafe for ExpansionError
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