pub struct NotConvertibleFromComplexF64 {
pub source: Complex<f64>,
pub target_type: &'static str,
}Expand description
Error describing a failed attempt to convert a Complex<f64> into the type
V of DynQuantity<V>.
For example, this error will be returned when trying to parse a string
representing a complex quantity into a
DynQuantity<f64>.
Fields§
§source: Complex<f64>Inner which failed to convert.
target_type: &'static strTarget type name.
Trait Implementations§
Source§impl Clone for NotConvertibleFromComplexF64
impl Clone for NotConvertibleFromComplexF64
Source§fn clone(&self) -> NotConvertibleFromComplexF64
fn clone(&self) -> NotConvertibleFromComplexF64
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 NotConvertibleFromComplexF64
impl Debug for NotConvertibleFromComplexF64
Source§impl Error for NotConvertibleFromComplexF64
impl Error for NotConvertibleFromComplexF64
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 NotConvertibleFromComplexF64
impl PartialEq for NotConvertibleFromComplexF64
Source§fn eq(&self, other: &NotConvertibleFromComplexF64) -> bool
fn eq(&self, other: &NotConvertibleFromComplexF64) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotConvertibleFromComplexF64
Auto Trait Implementations§
impl Freeze for NotConvertibleFromComplexF64
impl RefUnwindSafe for NotConvertibleFromComplexF64
impl Send for NotConvertibleFromComplexF64
impl Sync for NotConvertibleFromComplexF64
impl Unpin for NotConvertibleFromComplexF64
impl UnsafeUnpin for NotConvertibleFromComplexF64
impl UnwindSafe for NotConvertibleFromComplexF64
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