pub enum BasisPointsError {
InvalidBasisPoints,
ConversionFailed,
}Expand description
Errors returned by BasisPoints validation and conversions.
Variants§
InvalidBasisPoints
Basis points must be less than or equal to 10_000.
ConversionFailed
Decimal could not be safely cast to the target integer type.
Trait Implementations§
Source§impl Debug for BasisPointsError
impl Debug for BasisPointsError
Source§impl Display for BasisPointsError
impl Display for BasisPointsError
impl Eq for BasisPointsError
Source§impl Error for BasisPointsError
impl Error for BasisPointsError
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 BasisPointsError
impl PartialEq for BasisPointsError
Source§fn eq(&self, other: &BasisPointsError) -> bool
fn eq(&self, other: &BasisPointsError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BasisPointsError
Auto Trait Implementations§
impl Freeze for BasisPointsError
impl RefUnwindSafe for BasisPointsError
impl Send for BasisPointsError
impl Sync for BasisPointsError
impl Unpin for BasisPointsError
impl UnsafeUnpin for BasisPointsError
impl UnwindSafe for BasisPointsError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.