pub struct NoDecimalRepresentation(pub BigRational);Expand description
Error raised when trying to create a decimal value from a rational without finite decimal representation.
Tuple Fields§
§0: BigRationalTrait Implementations§
Source§impl Debug for NoDecimalRepresentation
impl Debug for NoDecimalRepresentation
Source§impl Display for NoDecimalRepresentation
impl Display for NoDecimalRepresentation
Source§impl Error for NoDecimalRepresentation
impl Error for NoDecimalRepresentation
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()
Auto Trait Implementations§
impl Freeze for NoDecimalRepresentation
impl RefUnwindSafe for NoDecimalRepresentation
impl Send for NoDecimalRepresentation
impl Sync for NoDecimalRepresentation
impl Unpin for NoDecimalRepresentation
impl UnsafeUnpin for NoDecimalRepresentation
impl UnwindSafe for NoDecimalRepresentation
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