pub struct ResistanceValue { /* private fields */ }Expand description
A resistance value in ohms.
Implementations§
Source§impl ResistanceValue
impl ResistanceValue
Sourcepub fn new_ohms(value: f64) -> Result<Self, ResistanceValueError>
pub fn new_ohms(value: f64) -> Result<Self, ResistanceValueError>
Creates a non-negative resistance value in ohms.
§Errors
Returns ResistanceValueError when the value is not finite or is negative.
Trait Implementations§
Source§impl Clone for ResistanceValue
impl Clone for ResistanceValue
Source§fn clone(&self) -> ResistanceValue
fn clone(&self) -> ResistanceValue
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 ResistanceValue
impl Debug for ResistanceValue
Source§impl Display for ResistanceValue
impl Display for ResistanceValue
Source§impl PartialEq for ResistanceValue
impl PartialEq for ResistanceValue
Source§fn eq(&self, other: &ResistanceValue) -> bool
fn eq(&self, other: &ResistanceValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ResistanceValue
impl PartialOrd for ResistanceValue
impl Copy for ResistanceValue
impl StructuralPartialEq for ResistanceValue
Auto Trait Implementations§
impl Freeze for ResistanceValue
impl RefUnwindSafe for ResistanceValue
impl Send for ResistanceValue
impl Sync for ResistanceValue
impl Unpin for ResistanceValue
impl UnsafeUnpin for ResistanceValue
impl UnwindSafe for ResistanceValue
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