pub enum ResistanceValueError {
NonFinite,
Negative,
}Expand description
Errors returned while constructing resistance values.
Variants§
Trait Implementations§
Source§impl Clone for ResistanceValueError
impl Clone for ResistanceValueError
Source§fn clone(&self) -> ResistanceValueError
fn clone(&self) -> ResistanceValueError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResistanceValueError
impl Debug for ResistanceValueError
Source§impl Display for ResistanceValueError
impl Display for ResistanceValueError
Source§impl Error for ResistanceValueError
impl Error for ResistanceValueError
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 ResistanceValueError
impl PartialEq for ResistanceValueError
Source§fn eq(&self, other: &ResistanceValueError) -> bool
fn eq(&self, other: &ResistanceValueError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ResistanceValueError
impl Eq for ResistanceValueError
impl StructuralPartialEq for ResistanceValueError
Auto Trait Implementations§
impl Freeze for ResistanceValueError
impl RefUnwindSafe for ResistanceValueError
impl Send for ResistanceValueError
impl Sync for ResistanceValueError
impl Unpin for ResistanceValueError
impl UnsafeUnpin for ResistanceValueError
impl UnwindSafe for ResistanceValueError
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