pub enum PowerUnit {
Watt,
KiloWatt,
MegaWatt,
Horsepower,
}Expand description
Display/conversion units for Power.
Variants§
Watt
Watts (W) – SI base unit for power.
KiloWatt
Kilowatts (kW).
MegaWatt
Megawatts (MW).
Horsepower
Mechanical horsepower (hp).
Trait Implementations§
impl Copy for PowerUnit
impl Eq for PowerUnit
impl StructuralPartialEq for PowerUnit
Auto Trait Implementations§
impl Freeze for PowerUnit
impl RefUnwindSafe for PowerUnit
impl Send for PowerUnit
impl Sync for PowerUnit
impl Unpin for PowerUnit
impl UnsafeUnpin for PowerUnit
impl UnwindSafe for PowerUnit
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