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