pub struct Kw(/* private fields */);Expand description
Power in kilowatts. Positive is consumption (import), negative is feed-in (export).
Implementations§
Source§impl Kw
impl Kw
Sourcepub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add(self, other: Self) -> Option<Self>
Checked addition; None on overflow.
Sourcepub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
Checked subtraction; None on overflow.
Trait Implementations§
impl Copy for Kw
Source§impl<'de> Deserialize<'de> for Kw
impl<'de> Deserialize<'de> for Kw
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
impl Eq for Kw
Source§impl Ord for Kw
impl Ord for Kw
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Kw
impl PartialOrd for Kw
impl StructuralPartialEq for Kw
Auto Trait Implementations§
impl Forget for Kw
impl Freeze for Kw
impl Move for Kw
impl RefUnwindSafe for Kw
impl Send for Kw
impl Sync for Kw
impl Unpin for Kw
impl UnsafeUnpin for Kw
impl UnwindSafe for Kw
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