#[repr(C)]pub struct UnitsOfSummandsNotIdentical(pub UnitExponents, pub UnitExponents);Expand description
Error representing a failed attempt to add two physical quantities.
Two physical quantities can only be added if their units of measurements are
identical. If they aren’t, the corresponding function will return an instance
of this struct, which holds the UnitExponents of both quantities for
further inspection.
Tuple Fields§
§0: UnitExponents§1: UnitExponentsTrait Implementations§
Source§impl Clone for UnitsOfSummandsNotIdentical
impl Clone for UnitsOfSummandsNotIdentical
Source§fn clone(&self) -> UnitsOfSummandsNotIdentical
fn clone(&self) -> UnitsOfSummandsNotIdentical
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 UnitsOfSummandsNotIdentical
impl Debug for UnitsOfSummandsNotIdentical
Source§impl Default for UnitsOfSummandsNotIdentical
impl Default for UnitsOfSummandsNotIdentical
Source§fn default() -> UnitsOfSummandsNotIdentical
fn default() -> UnitsOfSummandsNotIdentical
Returns the “default value” for a type. Read more
Source§impl Error for UnitsOfSummandsNotIdentical
impl Error for UnitsOfSummandsNotIdentical
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 From<UnitsOfSummandsNotIdentical> for ParseErrorReason
impl From<UnitsOfSummandsNotIdentical> for ParseErrorReason
Source§fn from(value: UnitsOfSummandsNotIdentical) -> Self
fn from(value: UnitsOfSummandsNotIdentical) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for UnitsOfSummandsNotIdentical
Auto Trait Implementations§
impl Freeze for UnitsOfSummandsNotIdentical
impl RefUnwindSafe for UnitsOfSummandsNotIdentical
impl Send for UnitsOfSummandsNotIdentical
impl Sync for UnitsOfSummandsNotIdentical
impl Unpin for UnitsOfSummandsNotIdentical
impl UnwindSafe for UnitsOfSummandsNotIdentical
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