pub enum PercentageError {
OutOfRange(Decimal),
}Expand description
Error for invalid percentage construction.
Variants§
Trait Implementations§
Source§impl Clone for PercentageError
impl Clone for PercentageError
Source§fn clone(&self) -> PercentageError
fn clone(&self) -> PercentageError
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 PercentageError
impl Debug for PercentageError
Source§impl Display for PercentageError
impl Display for PercentageError
Source§impl Error for PercentageError
impl Error for PercentageError
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 PartialEq for PercentageError
impl PartialEq for PercentageError
impl Eq for PercentageError
impl StructuralPartialEq for PercentageError
Auto Trait Implementations§
impl Freeze for PercentageError
impl RefUnwindSafe for PercentageError
impl Send for PercentageError
impl Sync for PercentageError
impl Unpin for PercentageError
impl UnsafeUnpin for PercentageError
impl UnwindSafe for PercentageError
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