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