Struct CurrentRating
pub struct CurrentRating { /* private fields */ }Expand description
A current rating in amperes.
Implementations§
§impl CurrentRating
impl CurrentRating
pub fn new_amperes(value: f64) -> Result<CurrentRating, RatingError>
pub fn new_amperes(value: f64) -> Result<CurrentRating, RatingError>
Creates a non-negative current rating in amperes.
§Errors
Returns [RatingError] when the value is not finite or is negative.
Trait Implementations§
§impl Clone for CurrentRating
impl Clone for CurrentRating
§fn clone(&self) -> CurrentRating
fn clone(&self) -> CurrentRating
Returns a duplicate 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 more§impl Debug for CurrentRating
impl Debug for CurrentRating
§impl Display for CurrentRating
impl Display for CurrentRating
§impl PartialEq for CurrentRating
impl PartialEq for CurrentRating
§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