Struct const_units::InconsistentUnits
source · pub struct InconsistentUnits { /* private fields */ }
Expand description
Returned when incompatible units are used together
Trait Implementations§
source§impl Clone for InconsistentUnits
impl Clone for InconsistentUnits
source§fn clone(&self) -> InconsistentUnits
fn clone(&self) -> InconsistentUnits
Returns a copy 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 InconsistentUnits
impl Debug for InconsistentUnits
source§impl Display for InconsistentUnits
impl Display for InconsistentUnits
source§impl Error for InconsistentUnits
impl Error for InconsistentUnits
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 InconsistentUnits
impl PartialEq for InconsistentUnits
source§fn eq(&self, other: &InconsistentUnits) -> bool
fn eq(&self, other: &InconsistentUnits) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InconsistentUnits
impl Eq for InconsistentUnits
impl StructuralEq for InconsistentUnits
impl StructuralPartialEq for InconsistentUnits
Auto Trait Implementations§
impl RefUnwindSafe for InconsistentUnits
impl Send for InconsistentUnits
impl Sync for InconsistentUnits
impl Unpin for InconsistentUnits
impl UnwindSafe for InconsistentUnits
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