pub struct ApparentPower(/* private fields */);Expand description
Apparent power in volt-amperes — the quantity the VDE-AR-N 4100 unbalance rule (≤ 4,6 kVA Schieflast) is expressed in.
Implementations§
Source§impl ApparentPower
impl ApparentPower
Sourcepub fn is_finite(self) -> bool
pub fn is_finite(self) -> bool
true when the value is finite — the precondition every setpoint
is checked against before it leaves the process.
Sourcepub fn max(self, other: Self) -> Self
pub fn max(self, other: Self) -> Self
The larger of two values. Propagates NaN rather than hiding it.
Sourcepub fn min(self, other: Self) -> Self
pub fn min(self, other: Self) -> Self
The smaller of two values. Propagates NaN rather than hiding it.
Sourcepub fn clamp(self, lo: Self, hi: Self) -> Self
pub fn clamp(self, lo: Self, hi: Self) -> Self
Clamped into [lo, hi].
§Panics
Panics when lo > hi, which is a programming error in the caller
rather than a runtime condition.
Trait Implementations§
Source§impl Add for ApparentPower
impl Add for ApparentPower
Source§impl AddAssign for ApparentPower
impl AddAssign for ApparentPower
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl Clone for ApparentPower
impl Clone for ApparentPower
Source§fn clone(&self) -> ApparentPower
fn clone(&self) -> ApparentPower
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 moreimpl Copy for ApparentPower
Source§impl Debug for ApparentPower
impl Debug for ApparentPower
Source§impl Default for ApparentPower
impl Default for ApparentPower
Source§fn default() -> ApparentPower
fn default() -> ApparentPower
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApparentPower
impl<'de> Deserialize<'de> for ApparentPower
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ApparentPower
impl Display for ApparentPower
Source§impl Div for ApparentPower
impl Div for ApparentPower
Source§impl Div<f64> for ApparentPower
impl Div<f64> for ApparentPower
Source§impl Mul<ApparentPower> for f64
impl Mul<ApparentPower> for f64
Source§type Output = ApparentPower
type Output = ApparentPower
The resulting type after applying the
* operator.Source§fn mul(self, rhs: ApparentPower) -> ApparentPower
fn mul(self, rhs: ApparentPower) -> ApparentPower
Performs the
* operation. Read moreSource§impl Mul<f64> for ApparentPower
impl Mul<f64> for ApparentPower
Source§impl Neg for ApparentPower
impl Neg for ApparentPower
Source§impl PartialEq for ApparentPower
impl PartialEq for ApparentPower
Source§impl PartialOrd for ApparentPower
impl PartialOrd for ApparentPower
Source§impl Serialize for ApparentPower
impl Serialize for ApparentPower
impl StructuralPartialEq for ApparentPower
Source§impl Sub for ApparentPower
impl Sub for ApparentPower
Source§impl SubAssign for ApparentPower
impl SubAssign for ApparentPower
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreSource§impl Sum for ApparentPower
impl Sum for ApparentPower
Source§impl<'a> Sum<&'a ApparentPower> for ApparentPower
impl<'a> Sum<&'a ApparentPower> for ApparentPower
Auto Trait Implementations§
impl Freeze for ApparentPower
impl RefUnwindSafe for ApparentPower
impl Send for ApparentPower
impl Sync for ApparentPower
impl Unpin for ApparentPower
impl UnsafeUnpin for ApparentPower
impl UnwindSafe for ApparentPower
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